Add #if!def fallback for OPENWEATHERMAP_API_KEY, and compiler warning
All checks were successful
Compile / Compile (push) Successful in 1m25s
All checks were successful
Compile / Compile (push) Successful in 1m25s
This commit is contained in:
parent
b0e5d281e0
commit
5863b0db2c
1 changed files with 5 additions and 1 deletions
|
@ -34,12 +34,16 @@
|
|||
#define EEPROM_MAGIC2 0x0d
|
||||
#define EEPROM_VERSION 1
|
||||
|
||||
#define OPENWEATHERMAP_API_KEY ""
|
||||
#include "secrets.h"
|
||||
#if !defined(WIFI_SSID) || !defined(WIFI_PASS)
|
||||
#error "Please define WIFI_SSID and WIFI_PASS in secrets.h"
|
||||
#endif
|
||||
|
||||
#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"
|
||||
|
|
Loading…
Reference in a new issue