From 4861e53330a01c7fedbd3dfe9ee33a75b844e7c4 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Sun, 20 Oct 2019 23:02:51 -0300 Subject: [PATCH] Fix issue if STARTING_OFFSET is undefined If STARTING_OFFSET is undefined in my_user_config.h file, the compilation fails due to this parameter is used in the defaults of settings.ino --- sonoff/sonoff_post.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonoff/sonoff_post.h b/sonoff/sonoff_post.h index 8e0e95cf4..7cb08a27a 100644 --- a/sonoff/sonoff_post.h +++ b/sonoff/sonoff_post.h @@ -708,6 +708,10 @@ char* ToHex_P(const unsigned char * in, size_t insz, char * out, size_t outsz, c #define SWITCH_MODE TOGGLE // TOGGLE, FOLLOW or FOLLOW_INV (the wall switch state) #endif +#ifndef STARTING_OFFSET // NOVA SDS parameter used in settings +#define STARTING_OFFSET 30 +#endif + #ifndef MQTT_FINGERPRINT1 // Set an all-zeros default fingerprint to activate auto-learning on first connection (AWS IoT) #define MQTT_FINGERPRINT1 "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"