clear list on autodetect

This commit is contained in:
Paul
2019-06-08 22:35:37 +02:00
parent 82ca347d44
commit 58a244ab2a
4 changed files with 10 additions and 1 deletions

View File

@@ -964,6 +964,7 @@ void startDeviceScan() {
regularUpdatesTimer.detach();
publishSensorValuesTimer.detach();
scanDevices_count = 1; // starts at 1
ems_clearDeviceList(); // empty the current list
ems_setLogging(EMS_SYS_LOGGING_NONE);
myDebug_P(PSTR("Starting a deep EMS device scan. This can take up to 2 minutes. Please wait..."));
scanThermostat.attach_ms(SCANDEVICES_TIME, do_scanDevices);