From 5dea52ebe422038d9b4876d2a173dc681c68e730 Mon Sep 17 00:00:00 2001 From: Lewis Jackson <> Date: Thu, 1 Jun 2023 21:33:44 +0300 Subject: [PATCH] Move secrets.h stuff to the bottom so it can override everything --- src/config.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/config.h b/src/config.h index ff8ae08..d243f96 100644 --- a/src/config.h +++ b/src/config.h @@ -34,6 +34,15 @@ #define EEPROM_MAGIC2 0x0d #define EEPROM_VERSION 1 +#define DEFAULT_TZ_OFFSET 3600 * 3 + +#define NTP_SERVER "pool.ntp.org" + +#define UPDATE_INTERVAL 60 // seconds +#define WAKE_ON_ACCEL_EVENTS false // useful if saving battery by not updating every minute + +#define WEATHER_UPDATE_INTERVAL 3600 // seconds + #include "secrets.h" #if !defined(WIFI_SSID) || !defined(WIFI_PASS) #error "Please define WIFI_SSID and WIFI_PASS in secrets.h" @@ -42,13 +51,4 @@ #if !defined(OPENWEATHERMAP_API_KEY) #define OPENWEATHERMAP_API_KEY "" // Put the actual key in secrets.h. NOT HERE. #warning "OPENWEATHERMAP_API_KEY not defined in secrets.h" -#endif - -#define DEFAULT_TZ_OFFSET 3600 * 3 - -#define NTP_SERVER "pool.ntp.org" - -#define UPDATE_INTERVAL 60 // seconds -#define WAKE_ON_ACCEL_EVENTS false // useful if saving battery by not updating every minute - -#define WEATHER_UPDATE_INTERVAL 3600 // seconds \ No newline at end of file +#endif \ No newline at end of file