diff --git a/stm-firmware/adc-meas.c b/stm-firmware/adc-meas.c index b98b4a2..bbaf499 100644 --- a/stm-firmware/adc-meas.c +++ b/stm-firmware/adc-meas.c @@ -315,7 +315,8 @@ static inline __attribute__((optimize("O3"))) void adc_pt1000_filter(float adc_p stable_sample_counter = 0; alpha = ADC_PT1000_FILTER_WEIGHT_FAST; if (old_state != 1) { - safety_controller_report_error_with_key(ERR_FLAG_MEAS_ADC_UNSTABLE, MEAS_ADC_SAFETY_FLAG_KEY); + safety_controller_report_error_with_key(ERR_FLAG_MEAS_ADC_UNSTABLE, + MEAS_ADC_SAFETY_FLAG_KEY); old_state = 1; } } else { @@ -323,7 +324,8 @@ static inline __attribute__((optimize("O3"))) void adc_pt1000_filter(float adc_p if (old_state != 2) { stable_sample_counter++; if (stable_sample_counter >= ADC_PT1000_FILTER_STABLE_SAMPLE_COUNT) { - safety_controller_ack_flag_with_key(ERR_FLAG_MEAS_ADC_UNSTABLE, MEAS_ADC_SAFETY_FLAG_KEY); + safety_controller_ack_flag_with_key(ERR_FLAG_MEAS_ADC_UNSTABLE, + MEAS_ADC_SAFETY_FLAG_KEY); old_state = 2; } } diff --git a/stm-firmware/digio.c b/stm-firmware/digio.c index 190f073..10f7a85 100644 --- a/stm-firmware/digio.c +++ b/stm-firmware/digio.c @@ -172,11 +172,10 @@ void loudspeaker_set(uint16_t val) { loudspeaker_val = val; - if (!val) { + if (!val) loudspeaker_stop_beep(); - } else { + else loudspeaker_start_beep(val); - } } uint16_t loudspeaker_get(void) diff --git a/stm-firmware/hw-version-detect.c b/stm-firmware/hw-version-detect.c index 4d842aa..73684a1 100644 --- a/stm-firmware/hw-version-detect.c +++ b/stm-firmware/hw-version-detect.c @@ -1,22 +1,22 @@ /* Reflow Oven Controller -* -* Copyright (C) 2021 Mario Hüttel -* -* This file is part of the Reflow Oven Controller Project. -* -* The reflow oven controller is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -* -* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with the reflow oven controller project. -* If not, see . -*/ + * + * Copyright (C) 2021 Mario Hüttel + * + * This file is part of the Reflow Oven Controller Project. + * + * The reflow oven controller is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * The Reflow Oven Control Firmware is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the reflow oven controller project. + * If not, see . + */ /** * @addtogroup hw-version-detect