firmware wip

This commit is contained in:
Marcus 2024-04-18 15:27:58 +02:00
parent 7498086ae6
commit 171db2981c
1 changed files with 10 additions and 9 deletions

View File

@ -1706,6 +1706,14 @@ void POSTsystemSettings() {
// write data to EEPROM
EEPROM.commit();
// update time with new offset
timeClient.setTimeOffset(ntpOffset * 60 * 60);
timeClient.update();
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) {
@ -1713,15 +1721,8 @@ void POSTsystemSettings() {
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);
timeClient.update();
Serial.println(":: POSTsystemSettings ::");
Serial.print("configured: ");
Serial.println(configured);
Serial.print("UseFan: ");