mirror of https://github.com/arendst/Tasmota.git
Only restart if module supports it
This commit is contained in:
parent
70619ed610
commit
148fe4aec0
|
@ -771,8 +771,8 @@ void MqttDataHandler(char* topic, byte* data, unsigned int data_len)
|
||||||
if (10 == pindex) { // SetOption60 enable or disable traditional sleep
|
if (10 == pindex) { // SetOption60 enable or disable traditional sleep
|
||||||
WiFiSetSleepMode(); // Update WiFi sleep mode accordingly
|
WiFiSetSleepMode(); // Update WiFi sleep mode accordingly
|
||||||
}
|
}
|
||||||
if (12 == pindex) { // SetOption62 change input pull-up
|
if ((12 == pindex) && (my_module_flag.pullup)) { // SetOption62 change input pull-up
|
||||||
restart_flag = 2;
|
restart_flag = 2; // Only restart if module supports it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue