firmware wip
This commit is contained in:
parent
7498086ae6
commit
171db2981c
1 changed files with 10 additions and 9 deletions
|
@ -1706,6 +1706,14 @@ void POSTsystemSettings() {
|
||||||
// write data to EEPROM
|
// write data to EEPROM
|
||||||
EEPROM.commit();
|
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
|
// when user uses an relais for LED control, we force here PINled_PWM to 255
|
||||||
// to ensure nothing bad happens
|
// to ensure nothing bad happens
|
||||||
if(UseLEDrelais == true) {
|
if(UseLEDrelais == true) {
|
||||||
|
@ -1713,15 +1721,8 @@ void POSTsystemSettings() {
|
||||||
EEPROM.put(213, PINled_PWM);
|
EEPROM.put(213, PINled_PWM);
|
||||||
EEPROM.commit();
|
EEPROM.commit();
|
||||||
Serial.println("UseLEDrelais is 1, forcing PINled_PWM to max to prevent relais damage");
|
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.print("configured: ");
|
||||||
Serial.println(configured);
|
Serial.println(configured);
|
||||||
Serial.print("UseFan: ");
|
Serial.print("UseFan: ");
|
||||||
|
|
Loading…
Reference in a new issue