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

(uart) handle none arg in uartfeature; use new syntax in config debug output

This commit is contained in:
Marcin Nowak
2022-11-05 11:48:43 +02:00
committed by Milek7
parent 9b1e0d5090
commit 556af193ac
2 changed files with 31 additions and 19 deletions

View File

@@ -200,6 +200,14 @@ struct global_settings {
int iPoKeysPWM[ 7 ] = { 0, 1, 2, 3, 4, 5, 6 }; // numery wejść dla PWM
#ifdef WITH_UART
uart_input::conf_t uart_conf;
std::map<std::string, bool *> uartfeatures_map = {
{"main", &uart_conf.mainenable},
{"scnd", &uart_conf.scndenable},
{"train", &uart_conf.trainenable},
{"local", &uart_conf.localenable},
{"radiovolume", &uart_conf.radiovolumeenable},
{"radiochannel", &uart_conf.radiochannelenable}
};
#endif
#ifdef WITH_ZMQ
std::string zmq_address;