Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r9907b4602e00e40a84ff55344d61cee50feebc36 -r0772fa437a0f4bcbb58fbad9d6e1f0054efd0e28 --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 9907b4602e00e40a84ff55344d61cee50feebc36) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 0772fa437a0f4bcbb58fbad9d6e1f0054efd0e28) @@ -22,7 +22,7 @@ #include "mibspi.h" #include "reg_het.h" -#include "Battery.h" +#include "CPLD.h" #include "DialInFlow.h" #include "FPGA.h" #include "InternalADC.h" @@ -514,7 +514,7 @@ } else { // Alarm if not receiving new dialysate flow readings in timely manner - if ( ( TRUE == isDGCommunicating() ) && ( FALSE == isACPowerLost() ) ) + if ( ( TRUE == isDGCommunicating() ) && ( getCPLDACPowerLossDetected() != TRUE ) ) { if ( ++dialysateFlowDataFreshStatusCounter > DIP_DIALYSATE_FLOW_DATA_ALARM_THRESHOLD ) { @@ -1448,7 +1448,7 @@ F32 dipCurr; // only check current when we have A/C power - if ( FALSE == isACPowerLost() ) + if ( getCPLDACPowerLossDetected() != TRUE ) { // DialIn pump should be off if ( DIAL_IN_PUMP_OFF_STATE == dialInPumpState )