This commit is contained in:
Yuri Trikoz
2020-06-24 02:11:08 +03:00
parent f9933ea55e
commit cc3c17dfb2
3 changed files with 10 additions and 0 deletions

View File

@@ -255,6 +255,7 @@ extern void do_mqtt_send_settings_to_udp();
extern void Web_server_init();
// iot_firmware
extern void loopSerial();
extern void loopCmd();
extern void loopButton();
extern void loopScenario();

View File

@@ -250,6 +250,12 @@ void switch_() {
but[switch_number.toInt()] = true;
}
void loopSerial() {
if (term) {
term->loop();
}
}
void loopButton() {
static uint8_t switch_number = 1;

View File

@@ -93,6 +93,9 @@ void loop() {
#ifdef UDP_ENABLED
loopUdp();
#endif
loopSerial();
ts.update();
}