[BME680] Force reinit after change settings

This commit is contained in:
TD-er
2020-12-14 23:04:14 +01:00
committed by GitHub
parent 7fd95a8ec0
commit eba8a8b6f5
+1
View File
@@ -103,6 +103,7 @@ boolean Plugin_106(byte function, struct EventStruct *event, String& string)
static_cast<P106_data_struct *>(getPluginTaskData(event->TaskIndex));
if (nullptr != P106_data) {
P106_data->initialized = false; // Force re-init just in case the address changed.
P106_data->begin(PCONFIG(0));
success = P106_data->initialized;
}