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:
4
uart.h
4
uart.h
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user