mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 22:59:19 +02:00
(uart, debug) add UART debug panel with connection information
This commit is contained in:
10
uart.h
10
uart.h
@@ -3,6 +3,14 @@
|
||||
#include <libserialport.h>
|
||||
#include "command.h"
|
||||
|
||||
class UartStatus {
|
||||
public:
|
||||
bool is_connected = false;
|
||||
bool is_synced = false;
|
||||
unsigned long packets_sent = 0;
|
||||
unsigned long packets_received = 0;
|
||||
};
|
||||
|
||||
class uart_input
|
||||
{
|
||||
public:
|
||||
@@ -52,6 +60,8 @@ public:
|
||||
recall_bindings();
|
||||
void
|
||||
poll();
|
||||
bool
|
||||
is_connected();
|
||||
|
||||
private:
|
||||
// types
|
||||
|
||||
Reference in New Issue
Block a user