mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 12:49:18 +02:00
update buffer size in uart_input desctructor
This commit is contained in:
2
uart.cpp
2
uart.cpp
@@ -40,7 +40,7 @@ uart_input::uart_input()
|
|||||||
|
|
||||||
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_blocking_write(port, (void*)buffer.data(), buffer.size(), 0);
|
||||||
sp_drain(port);
|
sp_drain(port);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user