diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 357d2a0..2358aca 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -1706,15 +1706,7 @@ void POSTsystemSettings() { // write data to EEPROM EEPROM.commit(); - // when user uses an relais for LED control, we force here PINled_PWM to 255 - // to ensure nothing bad happens - if(UseLEDrelais == true) { - PINled_PWM = 255; - EEPROM.put(213, PINled_PWM); - EEPROM.commit(); - Serial.println("UseLEDrelais is 1, forcing PINled_PWM to max to prevent relais damage"); - - } + // update time with new offset timeClient.setTimeOffset(ntpOffset * 60 * 60); @@ -1722,6 +1714,15 @@ void POSTsystemSettings() { Serial.println(":: POSTsystemSettings ::"); + // when user uses an relais for LED control, we force here PINled_PWM to 255 + // to ensure nothing bad happens + if(UseLEDrelais == true) { + PINled_PWM = 255; + EEPROM.put(213, PINled_PWM); + EEPROM.commit(); + Serial.println("UseLEDrelais is 1, forcing PINled_PWM to max to prevent relais damage"); + } + Serial.print("configured: "); Serial.println(configured); Serial.print("UseFan: ");