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

(uart) fix port change handling, add packet stats resetting

This commit is contained in:
Marcin Nowak
2021-10-17 00:13:33 +02:00
parent 0138aa2f41
commit 20a369974a
2 changed files with 14 additions and 7 deletions

2
uart.h
View File

@@ -15,6 +15,8 @@ class UartStatus {
bool is_synced = false;
unsigned long packets_sent = 0;
unsigned long packets_received = 0;
void reset_stats();
};
class uart_input