remove unused properties from cron type structure

This commit is contained in:
Bogdan Pilyugin 2023-10-12 11:51:52 +02:00
parent e25f951081
commit 9d743f3044
2 changed files with 0 additions and 6 deletions

View File

@ -51,8 +51,6 @@ typedef struct
bool enab; /*!< Enable scheduler */ bool enab; /*!< Enable scheduler */
bool prev; /*!< Enable to execute nearest in the past sheduled action */ bool prev; /*!< Enable to execute nearest in the past sheduled action */
char name[TIMER_NAME_LENGTH]; /*!< Human readable name of scheduler */ char name[TIMER_NAME_LENGTH]; /*!< Human readable name of scheduler */
int obj; /*!< Index of object scheduler affected on */
int act; /*!< Index of action with the object*/
char cron[TIMER_CRONSTRING_LENGTH]; /*!< Cron expression */ char cron[TIMER_CRONSTRING_LENGTH]; /*!< Cron expression */
char exec[TIMER_EXECSTRING_LENGTH]; /*!< Cron command string */ char exec[TIMER_EXECSTRING_LENGTH]; /*!< Cron command string */

View File

@ -295,8 +295,6 @@ static void funct_cronrecs(char *argres, int rw)
T.enab = jRead_int(argres, "[*{'enab'", &i); T.enab = jRead_int(argres, "[*{'enab'", &i);
T.prev = jRead_int(argres, "[*{'prev'", &i); T.prev = jRead_int(argres, "[*{'prev'", &i);
jRead_string(argres, "[*{'name'", T.name, sizeof(T.name), &i); jRead_string(argres, "[*{'name'", T.name, sizeof(T.name), &i);
T.obj = jRead_int(argres, "[*{'obj'", &i);
T.act = jRead_int(argres, "[*{'act'", &i);
jRead_string(argres, "[*{'cron'", T.cron, sizeof(T.cron), &i); jRead_string(argres, "[*{'cron'", T.cron, sizeof(T.cron), &i);
jRead_string(argres, "[*{'exec'", T.exec, sizeof(T.exec), &i); jRead_string(argres, "[*{'exec'", T.exec, sizeof(T.exec), &i);
memcpy(&GetSysConf()->Timers[T.num - 1], &T, sizeof(cron_timer_t)); memcpy(&GetSysConf()->Timers[T.num - 1], &T, sizeof(cron_timer_t));
@ -318,8 +316,6 @@ static void funct_cronrecs(char *argres, int rw)
jwObj_int(&jwc, "enab", (T.enab) ? 1 : 0); jwObj_int(&jwc, "enab", (T.enab) ? 1 : 0);
jwObj_int(&jwc, "prev", (T.prev) ? 1 : 0); jwObj_int(&jwc, "prev", (T.prev) ? 1 : 0);
jwObj_string(&jwc, "name", T.name); jwObj_string(&jwc, "name", T.name);
jwObj_int(&jwc, "obj", (unsigned int) T.obj);
jwObj_int(&jwc, "act", (unsigned int) T.act);
jwObj_string(&jwc, "cron", T.cron); jwObj_string(&jwc, "cron", T.cron);
jwObj_string(&jwc, "exec", T.exec); jwObj_string(&jwc, "exec", T.exec);
jwEnd(&jwc); jwEnd(&jwc);