aqhome-react: fixed timeprogram module.

This commit is contained in:
Martin Preuss
2025-03-19 23:22:46 +01:00
parent 7a045abcc2
commit 091307290e
2 changed files with 99 additions and 88 deletions

View File

@@ -16,6 +16,10 @@
#include "aqhome-react/types/prgrule.h"
#include <gwenhywfar/list.h>
#include <gwenhywfar/timestamp.h>
#include <time.h>
@@ -29,7 +33,7 @@ GWEN_LIST_FUNCTION_DEFS(MODULE_TIMER_ACTION, ModuleTimerAction)
struct MODULE_TIMER_ACTION {
GWEN_LIST_ELEMENT(MODULE_TIMER_ACTION)
int hourMinutes;
int64_t triggerTime;
double value;
};
@@ -40,6 +44,10 @@ struct AQHREACT_UNIT_TIMEPROGRAM {
MODULE_TIMER_ACTION_LIST *actionList;
int lastActionHour;
GWEN_TIMESTAMP *nextAddTime;
time_t lastCheckTime;
time_t lastCreateTime;
};