Issue #28: Improve script handling

This commit is contained in:
Mario Hüttel 2021-03-21 19:21:36 +01:00
parent e815442617
commit a25b249d77
2 changed files with 4 additions and 3 deletions

View File

@ -733,6 +733,7 @@ shellmatta_retCode_t shell_cmd_execute(const shellmatta_handle_t handle, const c
if (dlen > 0 && *data == '\x03') { if (dlen > 0 && *data == '\x03') {
temp_profile_executer_stop(); temp_profile_executer_stop();
running = false;
return SHELLMATTA_OK; return SHELLMATTA_OK;
} }
} }

View File

@ -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 bool cmd_ramp(struct pl_command *cmd, bool cmd_continue)
{ {
static uint64_t start_timestamp; static uint64_t IN_SECTION(.ccm.bss) start_timestamp;
static float start_temp; static float IN_SECTION(.ccm.bss) start_temp;
static float slope; static float IN_SECTION(.ccm.bss) slope;
float secs_passed; float secs_passed;
bool ret = false; bool ret = false;