mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix autodetect (default mode)
This commit is contained in:
@@ -1460,16 +1460,19 @@ void TelnetCommandCallback(uint8_t wc, const char * commandLine) {
|
||||
char * second_cmd = _readWord();
|
||||
if (strcmp(second_cmd, "deep") == 0) {
|
||||
startDeviceScan();
|
||||
ok = true;
|
||||
} else if (strcmp(second_cmd, "quick") == 0) {
|
||||
ems_clearDeviceList();
|
||||
ems_doReadCommand(EMS_TYPE_UBADevices, EMS_Boiler.device_id);
|
||||
} else {
|
||||
ems_scanDevices();
|
||||
ok = true;
|
||||
}
|
||||
} else {
|
||||
ems_scanDevices(); // normal known device scan
|
||||
ok = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// shower settings
|
||||
if ((strcmp(first_cmd, "shower") == 0) && (wc == 2)) {
|
||||
char * second_cmd = _readWord();
|
||||
|
||||
Reference in New Issue
Block a user