From f64c104e7fba855ef073b9a6da6725c21f8fffe0 Mon Sep 17 00:00:00 2001 From: milek7 Date: Wed, 11 Sep 2019 21:42:30 +0200 Subject: [PATCH] update buffer size in uart_input desctructor --- uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uart.cpp b/uart.cpp index 6290772d..1b18df0b 100644 --- a/uart.cpp +++ b/uart.cpp @@ -40,7 +40,7 @@ uart_input::uart_input() uart_input::~uart_input() { - std::array buffer = { 0 }; + std::array buffer = { 0 }; sp_blocking_write(port, (void*)buffer.data(), buffer.size(), 0); sp_drain(port);