diff --git a/stm-firmware/temp-profile/temp-profile-executer.c b/stm-firmware/temp-profile/temp-profile-executer.c index 363c4c7..e78a366 100644 --- a/stm-firmware/temp-profile/temp-profile-executer.c +++ b/stm-firmware/temp-profile/temp-profile-executer.c @@ -128,10 +128,8 @@ static void reactivate_pid_if_suspended(void) pid_should_run = true; } -static bool cmd_set_temp(struct pl_command *cmd, bool cmd_continue) +static bool cmd_set_temp(struct pl_command *cmd) { - (void)cmd_continue; - reactivate_pid_if_suspended(); oven_pid_set_target_temperature(cmd->params[0]); state.setpoint = cmd->params[0]; @@ -222,7 +220,7 @@ int temp_profile_executer_handle(void) advance = cmd_wait_temp(current_cmd, cmd_continue); break; case PL_SET_TEMP: - advance = cmd_set_temp(current_cmd, cmd_continue); + advance = cmd_set_temp(current_cmd); break; case PL_LOUDSPEAKER_SET: loudspeaker_set((uint16_t)current_cmd->params[0]);