Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r7499a42cc0f906f9a4a947c82c5b4615217ce7e5 -r659213fb2b743bc1593eae457d1895a21495a840 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 7499a42cc0f906f9a4a947c82c5b4615217ce7e5) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 659213fb2b743bc1593eae457d1895a21495a840) @@ -14,6 +14,8 @@ * @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; }