Index: firmware/App/Controllers/Fans.c =================================================================== diff -u -rfe131ec6c8d3511c5c74828c9c4e1942f8b218d5 -r7d4711edd7b40cd3e29f43e766f79a8a09586fe9 --- firmware/App/Controllers/Fans.c (.../Fans.c) (revision fe131ec6c8d3511c5c74828c9c4e1942f8b218d5) +++ firmware/App/Controllers/Fans.c (.../Fans.c) (revision 7d4711edd7b40cd3e29f43e766f79a8a09586fe9) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2020-2023 Diality Inc. - All Rights Reserved. +* Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file Fans.c * -* @author (last) Michael Garthwaite -* @date (last) 25-Jan-2023 +* @author (last) Sean Nash +* @date (last) 08-Jan-2024 * * @author (original) Dara Navaei * @date (original) 25-Nov-2020 @@ -373,9 +373,9 @@ ************************************************************************/ static F32 getMaximumTemperature( void ) { - F32 temperature; + F32 temperature = 0.0F; + F32 maxTemperature = 0.0F; THERMISTORS_TEMP_SENSORS_T thermistor; - F32 maxTemperature; // Loop through the sensors and thermistors for ( thermistor = THERMISTOR_ONBOARD_NTC; thermistor < NUM_OF_THERMISTORS; thermistor++ )