aqhome-react: fixed timeprogram module.
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user