mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-14 11:56:32 +03:00
add comments
This commit is contained in:
@@ -38,14 +38,14 @@
|
|||||||
|
|
||||||
// bit flags for the schedule items. Matches those in interface/src/app/main/SchedulerDialog.tsx
|
// bit flags for the schedule items. Matches those in interface/src/app/main/SchedulerDialog.tsx
|
||||||
// 0-127 (0->0x7F) is day schedule
|
// 0-127 (0->0x7F) is day schedule
|
||||||
// 128/0x80 is timer
|
// 128 (0x80) is timer
|
||||||
// 129/0x81 is on change
|
// 129 (0x81) is on change
|
||||||
// 130/0x82 is on condition
|
// 130 (0x82) is on condition
|
||||||
// 132/0x84 is immediate
|
// 132 (0x84) is immediate
|
||||||
#define SCHEDULEFLAG_SCHEDULE_TIMER 0x80 // 7th bit for Timer
|
#define SCHEDULEFLAG_SCHEDULE_TIMER 0x80 // 7th bit for Timer
|
||||||
#define SCHEDULEFLAG_SCHEDULE_ONCHANGE 0x81 // 7th+1st bit for OnChange
|
#define SCHEDULEFLAG_SCHEDULE_ONCHANGE 0x81 // 7th+1st bit for OnChange
|
||||||
#define SCHEDULEFLAG_SCHEDULE_CONDITION 0x82 // 7th+2nd bit for Condition
|
#define SCHEDULEFLAG_SCHEDULE_CONDITION 0x82 // 7th+2nd bit for Condition
|
||||||
#define SCHEDULEFLAG_SCHEDULE_IMMEDIATE 0x84 // 7th+3rd bit for Condition
|
#define SCHEDULEFLAG_SCHEDULE_IMMEDIATE 0x84 // 7th+3rd bit for Immediate
|
||||||
|
|
||||||
#define MAX_STARTUP_RETRIES 3 // retry the start-up commands x times
|
#define MAX_STARTUP_RETRIES 3 // retry the start-up commands x times
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ namespace emsesp {
|
|||||||
class ScheduleItem {
|
class ScheduleItem {
|
||||||
public:
|
public:
|
||||||
boolean active;
|
boolean active;
|
||||||
uint8_t flags;
|
uint8_t flags; // bit flags, see SCHEDULEFLAG_* defines
|
||||||
uint16_t elapsed_min; // total mins from 00:00
|
uint16_t elapsed_min; // total mins from 00:00
|
||||||
stringPSRAM time; // HH:MM
|
stringPSRAM time; // HH:MM
|
||||||
stringPSRAM cmd;
|
stringPSRAM cmd;
|
||||||
|
|||||||
Reference in New Issue
Block a user