Remove unneeded parameter from fuction

This commit is contained in:
Mario Hüttel 2021-10-09 22:59:35 +02:00
parent 376d9c7aaf
commit 2ab7257fe6

View File

@ -128,10 +128,8 @@ static void reactivate_pid_if_suspended(void)
pid_should_run = true; 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(); reactivate_pid_if_suspended();
oven_pid_set_target_temperature(cmd->params[0]); oven_pid_set_target_temperature(cmd->params[0]);
state.setpoint = 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); advance = cmd_wait_temp(current_cmd, cmd_continue);
break; break;
case PL_SET_TEMP: case PL_SET_TEMP:
advance = cmd_set_temp(current_cmd, cmd_continue); advance = cmd_set_temp(current_cmd);
break; break;
case PL_LOUDSPEAKER_SET: case PL_LOUDSPEAKER_SET:
loudspeaker_set((uint16_t)current_cmd->params[0]); loudspeaker_set((uint16_t)current_cmd->params[0]);