force autodetect after changing thermostat - #238

This commit is contained in:
Paul
2019-12-30 20:48:03 +01:00
parent 1e7a9483e2
commit 75b47c1609

View File

@@ -1106,6 +1106,9 @@ bool SetListCallback(MYESP_FSACTION_t action, uint8_t wc, const char * setting,
uint8_t pid = atoi(value); uint8_t pid = atoi(value);
EMSESP_Settings.master_thermostat = pid; EMSESP_Settings.master_thermostat = pid;
ems_setMasterThermostat(pid); ems_setMasterThermostat(pid);
// force a scan
ems_clearDeviceList();
ems_doReadCommand(EMS_TYPE_UBADevices, EMS_Boiler.device_id);
ok = true; ok = true;
} }
} }