(uart, driveruipanels) add possibility to change uart baud rate in debug panel

This commit is contained in:
Marcin Nowak
2021-10-27 02:14:06 +02:00
parent 855ab880d8
commit f2c74d2f08
3 changed files with 57 additions and 0 deletions

5
uart.h
View File

@@ -3,12 +3,17 @@
#include <libserialport.h>
#include "command.h"
extern const char* uart_baudrates_list[];
extern const size_t uart_baudrates_list_num;
class UartStatus {
public:
std::string port_name = "";
std::vector<std::string> available_ports = {};
int selected_port_index = -1;
int selected_baud_index = -1;
int active_port_index = -1;
int active_baud_index = -1;
int baud = 0;
bool enabled = false;
bool is_connected = false;