Index: firmware/App/Modes/ModeTreatment.c =================================================================== diff -u -r421336466eff4ba9fef0ca5416043e5d83c63841 -r1a3a2f806bb81b05f67f80efb94f1d82ce174c09 --- firmware/App/Modes/ModeTreatment.c (.../ModeTreatment.c) (revision 421336466eff4ba9fef0ca5416043e5d83c63841) +++ firmware/App/Modes/ModeTreatment.c (.../ModeTreatment.c) (revision 1a3a2f806bb81b05f67f80efb94f1d82ce174c09) @@ -22,7 +22,6 @@ #include "DDInterface.h" #include "ModeService.h" #include "ModeTreatment.h" -#include "Messaging.h" //#include "NVDataMgmt.h" #include "OperationModes.h" #include "Pressures.h" @@ -914,7 +913,7 @@ // Compute minimum UF volume F32 minUFVol = 0.0F; // TODO getUltrafiltrationReferenceVolume() + presUFRate; // current UF volume + 1 min at current rate // Compute maximum UF volume (considering from adjustment of UF rate and time perspectives) - F32 maxUFVol1 = minUFVol + ( (F32)( presTime - elapseTime ) * MAX_UF_RATE_ML_MIN ); + F32 maxUFVol1 = minUFVol + ( (F32)( presTime - elapseTime ) * MAX_UF_RATE_L_HR ); F32 maxUFVol2 = ( presUFRateLHr > 0.0F ? minUFVol + ( (F32)( MAX_TREATMENT_TIME_MINUTES - elapseTime - 1 ) * presUFRateLHr ) : minUFVol ); F32 maxUFVol = MAX( maxUFVol1, maxUFVol2 ); // Set minimum dialysate flow rate