Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r1978e8476dc44688ed69531c236c154829ab8a76 -r1c04924590760ca29e1c9fe19bca65ec5ce428fe --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 1978e8476dc44688ed69531c236c154829ab8a76) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 1c04924590760ca29e1c9fe19bca65ec5ce428fe) @@ -8,12 +8,14 @@ * @file DGInterface.c * * @author (last) Dara Navaei -* @date (last) 13-Jul-2022 +* @date (last) 15-Jul-2022 * * @author (original) Sean * @date (original) 08-Apr-2020 * ***************************************************************************/ + +#include // To check for NaN #include "DialInFlow.h" #include "Dialysis.h" @@ -482,6 +484,12 @@ *************************************************************************/ void setDialysateFlowData( F32 flowRate ) { + // Check if the sent value by DG is a NaN + if ( isnan( flowRate ) ) + { + flowRate = 0.0; + } + dgDialysateFlowRateMlMin = flowRate; dgDialysateFlowDataFreshFlag = TRUE; }