Move secrets.h stuff to the bottom so it can override everything
All checks were successful
Compile / Compile (push) Successful in 1m19s

This commit is contained in:
Lewis Jackson 2023-06-01 21:33:44 +03:00
parent 5863b0db2c
commit 5dea52ebe4

View file

@ -34,6 +34,15 @@
#define EEPROM_MAGIC2 0x0d #define EEPROM_MAGIC2 0x0d
#define EEPROM_VERSION 1 #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" #include "secrets.h"
#if !defined(WIFI_SSID) || !defined(WIFI_PASS) #if !defined(WIFI_SSID) || !defined(WIFI_PASS)
#error "Please define WIFI_SSID and WIFI_PASS in secrets.h" #error "Please define WIFI_SSID and WIFI_PASS in secrets.h"
@ -43,12 +52,3 @@
#define OPENWEATHERMAP_API_KEY "" // Put the actual key in secrets.h. NOT HERE. #define OPENWEATHERMAP_API_KEY "" // Put the actual key in secrets.h. NOT HERE.
#warning "OPENWEATHERMAP_API_KEY not defined in secrets.h" #warning "OPENWEATHERMAP_API_KEY not defined in secrets.h"
#endif #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