Browse Source

Force NTP_SUPPORT to 1 if SCHEDULER_SUPPORT is 1

i18n
Xose Pérez 6 years ago
parent
commit
48c9eee605
1 changed files with 14 additions and 8 deletions
  1. +14
    -8
      code/espurna/config/general.h

+ 14
- 8
code/espurna/config/general.h View File

@ -20,14 +20,15 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#ifdef ESPURNA_CORE #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 #endif
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -686,6 +687,11 @@ PROGMEM const char* const custom_reset_string[] = {
#define SCHEDULER_SUPPORT 1 // Enable scheduler (1.77Kb) #define SCHEDULER_SUPPORT 1 // Enable scheduler (1.77Kb)
#endif #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_UPDATE_SEC 5 // Scheduler perform switch at hh:mm:05
#define SCHEDULER_MAX_SCHEDULES 10 // Max schedules alowed #define SCHEDULER_MAX_SCHEDULES 10 // Max schedules alowed


Loading…
Cancel
Save