summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HouseControl.ino10
1 files changed, 9 insertions, 1 deletions
diff --git a/HouseControl.ino b/HouseControl.ino
index efc5f45..5638cfa 100644
--- a/HouseControl.ino
+++ b/HouseControl.ino
@@ -49,6 +49,9 @@ struct st_config {
byte notifyHost[4];
unsigned int notifyPort;
+
+ byte dawn;
+ byte dusk;
};
struct st_door {
@@ -341,6 +344,8 @@ void toggleDoorControl(struct st_door *door) {
void setup() {
#if RECONFIGURE
+ config.configVersion = 3;
+
config.mac[0] = 0x00;
config.mac[1] = 0xA5;
config.mac[2] = 0xCB;
@@ -365,9 +370,12 @@ void setup() {
config.ntpServer[0] = 10;
config.ntpServer[1] = 113;
- config.ntpServer[2] = config.ntpServer[3] = 1;
+ config.ntpServer[2] = 1;
+ config.ntpServer[3] = 1;
config.UTC_offset = 1300;
+ config.dawn = 7;
+ config.dusk = 21;
eepromWrite(0, config);
#endif