Issue #28: Fix buf in profile executer
This commit is contained in:
parent
74defd5384
commit
6c9f90c986
@ -32,6 +32,7 @@ static struct tpe_current_state IN_SECTION(.ccm.data) state = {
|
|||||||
};
|
};
|
||||||
static bool IN_SECTION(.ccm.bss) pid_should_run;
|
static bool IN_SECTION(.ccm.bss) pid_should_run;
|
||||||
struct pid_controller IN_SECTION(.ccm.bss) pid;
|
struct pid_controller IN_SECTION(.ccm.bss) pid;
|
||||||
|
bool IN_SECTION(.ccm.bss) cmd_continue;
|
||||||
|
|
||||||
static struct pl_command IN_SECTION(.ccm.bss) cmd_list[MAX_PROFILE_LENGTH];
|
static struct pl_command IN_SECTION(.ccm.bss) cmd_list[MAX_PROFILE_LENGTH];
|
||||||
|
|
||||||
@ -56,6 +57,7 @@ enum pl_ret_val temp_profile_executer_start(const char *filename)
|
|||||||
pid_should_run = false;
|
pid_should_run = false;
|
||||||
state.status = TPE_OFF;
|
state.status = TPE_OFF;
|
||||||
state.profile_steps = 0;
|
state.profile_steps = 0;
|
||||||
|
cmd_continue = false;
|
||||||
|
|
||||||
res = temp_profile_parse_from_file(filename, cmd_list, MAX_PROFILE_LENGTH, &parsed_count);
|
res = temp_profile_parse_from_file(filename, cmd_list, MAX_PROFILE_LENGTH, &parsed_count);
|
||||||
if (res == PL_RET_SUCCESS) {
|
if (res == PL_RET_SUCCESS) {
|
||||||
@ -156,7 +158,7 @@ int temp_profile_executer_handle(void)
|
|||||||
struct pl_command *current_cmd;
|
struct pl_command *current_cmd;
|
||||||
static uint64_t last_tick = 0UL;
|
static uint64_t last_tick = 0UL;
|
||||||
bool advance;
|
bool advance;
|
||||||
static bool cmd_continue = false;
|
|
||||||
uint32_t next_step;
|
uint32_t next_step;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user