From 2ab7257fe64e572fd2b3e918ce7d3986fe3fd8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 9 Oct 2021 22:59:35 +0200 Subject: [PATCH] Remove unneeded parameter from fuction --- stm-firmware/temp-profile/temp-profile-executer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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]);