Index: firmware/App/Controllers/Fans.c =================================================================== diff -u -r1bff8e530735be63ba557b77557a0bc2ac4b37b2 -re7c4a51e6057f0cc83fabc72f2df9bb5dffee391 --- firmware/App/Controllers/Fans.c (.../Fans.c) (revision 1bff8e530735be63ba557b77557a0bc2ac4b37b2) +++ firmware/App/Controllers/Fans.c (.../Fans.c) (revision e7c4a51e6057f0cc83fabc72f2df9bb5dffee391) @@ -18,7 +18,7 @@ #include // For fabs #include "etpwm.h" -#include "Battery.h" +#include "CPLD.h" #include "Fans.h" #include "FPGA.h" #include "PersistentAlarm.h" @@ -413,7 +413,7 @@ F32 fansMinAllowedRPM = fansNominalRPM - ( fansNominalRPM * FANS_MIN_RPM_OUT_OF_RANGE_TOL ); F32 fansMaxAllowedRPM = fansNominalRPM + ( fansNominalRPM * FANS_MAX_RPM_OUT_OF_RANGE_TOL ); - if ( isACPowerLost() != TRUE ) + if ( getCPLDACPowerLossDetected() != TRUE ) { // Loop through the fans and make sure the each of them have RPM in range for ( fan = FAN_INLET_1; fan < NUM_OF_FANS_NAMES; fan++ )