firmware wip

This commit is contained in:
Marcus 2024-04-18 15:27:58 +02:00
parent 7498086ae6
commit 171db2981c

View file

@ -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: ");