From 2d739256365985d913e96522b387efdfdc16451a Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 6 Nov 2020 19:18:28 +0100 Subject: [PATCH] Added comments for the RTC struct --- esp32/src/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 0446b38..3c1e85a 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -28,17 +28,15 @@ const unsigned long TEMPREADCYCLE = 30000; /**< Check temperature all half minut #define HalfHour 60 typedef struct { - long lastActive; - long moistTrigger; - long moisture; + long lastActive; /**< Timestamp, a pump was activated */ + long moistTrigger; /**< Trigger value of the moist sensor */ + long moisture; /**< last measured moist value */ } rtc_plant_t; -RTC_DATA_ATTR rtc_plant_t rtcPlant[7]; - /********************* non volatile enable after deepsleep *******************************/ - +RTC_DATA_ATTR rtc_plant_t rtcPlant[7]; RTC_DATA_ATTR long gotoMode2AfterThisTimestamp = 0; RTC_DATA_ATTR long rtcDeepSleepTime = 0; /**< Time, when the microcontroller shall be up again */ RTC_DATA_ATTR int lastPumpRunning = 0;