Added comments for the RTC struct

This commit is contained in:
Ollo 2020-11-06 19:18:28 +01:00
parent 3fbf3bdb84
commit 2d73925636

View File

@ -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;