16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 04:19:19 +02:00

update buffer size in uart_input desctructor

This commit is contained in:
milek7
2019-09-11 21:42:30 +02:00
parent bed5857640
commit f64c104e7f

View File

@@ -40,7 +40,7 @@ uart_input::uart_input()
uart_input::~uart_input()
{
std::array<std::uint8_t, 31> buffer = { 0 };
std::array<std::uint8_t, 48> buffer = { 0 };
sp_blocking_write(port, (void*)buffer.data(), buffer.size(), 0);
sp_drain(port);