Only restart if module supports it

This commit is contained in:
Theo Arends 2019-01-07 16:58:44 +01:00
parent 70619ed610
commit 148fe4aec0
1 changed files with 2 additions and 2 deletions

View File

@ -771,8 +771,8 @@ void MqttDataHandler(char* topic, byte* data, unsigned int data_len)
if (10 == pindex) { // SetOption60 enable or disable traditional sleep
WiFiSetSleepMode(); // Update WiFi sleep mode accordingly
}
if (12 == pindex) { // SetOption62 change input pull-up
restart_flag = 2;
if ((12 == pindex) && (my_module_flag.pullup)) { // SetOption62 change input pull-up
restart_flag = 2; // Only restart if module supports it
}
}
}