Added comments for the RTC struct
This commit is contained in:
parent
3fbf3bdb84
commit
2d73925636
@ -28,17 +28,15 @@ const unsigned long TEMPREADCYCLE = 30000; /**< Check temperature all half minut
|
|||||||
#define HalfHour 60
|
#define HalfHour 60
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
long lastActive;
|
long lastActive; /**< Timestamp, a pump was activated */
|
||||||
long moistTrigger;
|
long moistTrigger; /**< Trigger value of the moist sensor */
|
||||||
long moisture;
|
long moisture; /**< last measured moist value */
|
||||||
|
|
||||||
} rtc_plant_t;
|
} rtc_plant_t;
|
||||||
|
|
||||||
|
|
||||||
RTC_DATA_ATTR rtc_plant_t rtcPlant[7];
|
|
||||||
|
|
||||||
/********************* non volatile enable after deepsleep *******************************/
|
/********************* non volatile enable after deepsleep *******************************/
|
||||||
|
RTC_DATA_ATTR rtc_plant_t rtcPlant[7];
|
||||||
RTC_DATA_ATTR long gotoMode2AfterThisTimestamp = 0;
|
RTC_DATA_ATTR long gotoMode2AfterThisTimestamp = 0;
|
||||||
RTC_DATA_ATTR long rtcDeepSleepTime = 0; /**< Time, when the microcontroller shall be up again */
|
RTC_DATA_ATTR long rtcDeepSleepTime = 0; /**< Time, when the microcontroller shall be up again */
|
||||||
RTC_DATA_ATTR int lastPumpRunning = 0;
|
RTC_DATA_ATTR int lastPumpRunning = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user