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

(uart, debug) first part of fixes after code review

- remove `uart_status` from eu7_application class
- remove copy&pasted `m_scenariopanel` size settings
- remove unnecessary code `debug_panel::render_section_uart()`
- remove #ifdef from `driveruipanels.h` textlines
- set `data_pending` to false when establishing a new connection
This commit is contained in:
Marcin Nowak
2022-04-16 01:28:42 +02:00
parent ddd8d77e3b
commit 7bd1e43dcf
6 changed files with 21 additions and 35 deletions

4
uart.h
View File

@@ -6,7 +6,7 @@
extern const char* uart_baudrates_list[];
extern const size_t uart_baudrates_list_num;
class UartStatus {
class uart_status {
public:
std::string port_name = "";
std::vector<std::string> available_ports = {};
@@ -104,3 +104,5 @@ private:
bool error_notified = false;
std::uint8_t m_trainstatecab { 0 }; // helper, keeps track of last active cab. 0: front cab, 1: rear cab
};
extern uart_status UartStatus;