diff --git a/stm-firmware/shell.c b/stm-firmware/shell.c index f621c96..dd01d82 100644 --- a/stm-firmware/shell.c +++ b/stm-firmware/shell.c @@ -733,6 +733,7 @@ shellmatta_retCode_t shell_cmd_execute(const shellmatta_handle_t handle, const c if (dlen > 0 && *data == '\x03') { temp_profile_executer_stop(); + running = false; return SHELLMATTA_OK; } } diff --git a/stm-firmware/temp-profile-executer.c b/stm-firmware/temp-profile-executer.c index 0729fdd..0fcde02 100644 --- a/stm-firmware/temp-profile-executer.c +++ b/stm-firmware/temp-profile-executer.c @@ -121,9 +121,9 @@ static bool cmd_set_temp(struct pl_command *cmd, bool cmd_continue) static bool cmd_ramp(struct pl_command *cmd, bool cmd_continue) { - static uint64_t start_timestamp; - static float start_temp; - static float slope; + static uint64_t IN_SECTION(.ccm.bss) start_timestamp; + static float IN_SECTION(.ccm.bss) start_temp; + static float IN_SECTION(.ccm.bss) slope; float secs_passed; bool ret = false;