Skip to content

Commit

Permalink
Force NTP_SUPPORT to 1 if SCHEDULER_SUPPORT is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Jan 11, 2018
1 parent 42847e5 commit 48c9eee
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions code/espurna/config/general.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
//------------------------------------------------------------------------------

#ifdef ESPURNA_CORE
#define ALEXA_SUPPORT 0
#define DOMOTICZ_SUPPORT 0
#define HOMEASSISTANT_SUPPORT 0
#define MQTT_SUPPORT 0
#define NTP_SUPPORT 0
#define WEB_SUPPORT 0
#define SENSOR_SUPPORT 0
#define I2C_SUPPORT 0
#define ALEXA_SUPPORT 0
#define SCHEDULER_SUPPORT 0
#define DOMOTICZ_SUPPORT 0
#define HOMEASSISTANT_SUPPORT 0
#define MQTT_SUPPORT 0
#define NTP_SUPPORT 0
#define WEB_SUPPORT 0
#define SENSOR_SUPPORT 0
#define I2C_SUPPORT 0
#endif

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -686,6 +687,11 @@ PROGMEM const char* const custom_reset_string[] = {
#define SCHEDULER_SUPPORT 1 // Enable scheduler (1.77Kb)
#endif

#if SCHEDULER_SUPPORT
#undef NTP_SUPPORT
#define NTP_SUPPORT 1 // Scheduler needs NTP
#endif

#define SCHEDULER_UPDATE_SEC 5 // Scheduler perform switch at hh:mm:05
#define SCHEDULER_MAX_SCHEDULES 10 // Max schedules alowed

Expand Down

0 comments on commit 48c9eee

Please sign in to comment.