firmware wip
This commit is contained in:
parent
ae51581a4b
commit
7498086ae6
1 changed files with 15 additions and 0 deletions
|
@ -1703,8 +1703,19 @@ void POSTsystemSettings() {
|
|||
// size is 1 byte
|
||||
EEPROM.put(214, TemperatureSensor_Type);
|
||||
|
||||
// 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);
|
||||
timeClient.update();
|
||||
|
@ -1725,6 +1736,10 @@ void POSTsystemSettings() {
|
|||
Serial.println(SoilmoistureLow);
|
||||
Serial.print("ntpOffset: ");
|
||||
Serial.println(ntpOffset);
|
||||
Serial.print("UseLEDrelais: ");
|
||||
Serial.println(UseLEDrelais);
|
||||
Serial.print("TemperatureSensor_Type: ");
|
||||
Serial.println(TemperatureSensor_Type);
|
||||
|
||||
if(strlen(GrowName) < 1) {
|
||||
webserver.sendHeader("Location", String("/growSettings?success"), true);
|
||||
|
|
Loading…
Reference in a new issue