mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
schedules: update option name from start to start_time
This commit is contained in:
parent
4068da5e91
commit
d23a06d6df
1 changed files with 3 additions and 3 deletions
|
|
@ -344,7 +344,7 @@ static int set_schedule_day(char *refparam, struct dmctx *ctx, void *data, char
|
|||
|
||||
static int get_schedule_start(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start", value);
|
||||
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start_time", value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -362,7 +362,7 @@ static int set_schedule_start(char *refparam, struct dmctx *ctx, void *data, cha
|
|||
ret = FAULT_9007;
|
||||
break;
|
||||
case VALUESET:
|
||||
dmuci_set_value_by_section(((struct dm_data *)data)->config_section, "start", value);
|
||||
dmuci_set_value_by_section(((struct dm_data *)data)->config_section, "start_time", value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -414,7 +414,7 @@ static int get_schedule_status(char *refparam, struct dmctx *ctx, void *data, ch
|
|||
return 0;
|
||||
}
|
||||
|
||||
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start", &start);
|
||||
dmuci_get_value_by_section_string(((struct dm_data *)data)->config_section, "start_time", &start);
|
||||
|
||||
duration = dmuci_get_value_by_section_fallback_def(((struct dm_data *)data)->config_section, "duration", "1");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue