firmware wip
This commit is contained in:
parent
7498086ae6
commit
171db2981c
1 changed files with 10 additions and 9 deletions
|
@ -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: ");
|
||||
|
|
Loading…
Reference in a new issue