Index: firmware/App/Controllers/DryBiCart.c =================================================================== diff -u -r7a2819655e470bb6a6c922a9b24ac1c6ee4b3c0a -r25857b2dd83d717ffdb35a759e3df46a24491e53 --- firmware/App/Controllers/DryBiCart.c (.../DryBiCart.c) (revision 7a2819655e470bb6a6c922a9b24ac1c6ee4b3c0a) +++ firmware/App/Controllers/DryBiCart.c (.../DryBiCart.c) (revision 25857b2dd83d717ffdb35a759e3df46a24491e53) @@ -107,11 +107,11 @@ #define MIX_CONTROL_INTERVAL_MS ( 15 * MS_PER_SECOND ) ///< Dialysate dosing control interval in ms #define BICARB_MIX_CONTROL_INTERVAL ( 3 * MS_PER_SECOND /\ - TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the dialysate dose is controlled. + TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the dialysate mix is controlled. #define ACID_MIX_CONTROL_INTERVAL ( MIX_CONTROL_INTERVAL_MS /\ - TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the dialysate dose is controlled. -#define BICARB_DEADBAND_CONTROL 50 ///< Dry Bicarb dead band control -#define ACID_DEADBAND_CONTROL 100 ///< Acid dead band control + TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the dialysate mix is controlled. +#define BICARB_DEADBAND_CONTROL 50.0F ///< Dry Bicarb dead band control +#define ACID_DEADBAND_CONTROL 100.0F ///< Acid dead band control /// Payload record structure for dry bicart fill request typedef struct @@ -1094,7 +1094,7 @@ if ( BICARB_MIX_ID == mixId ) { - // control at set minimum interval + // control interval for bicarb if ( ( ++dialysateMix[ mixId ].controlTimerCounter >= getDryBicartMixControlInterval() ) ) { dialysateMix[ mixId ].controlTimerCounter = 0; @@ -1109,7 +1109,7 @@ if ( fabs ( getBicarbTargetConductivity() - measuredBicarbConductivity ) > BICARB_DEADBAND_CONTROL ) { - //Set bicarb mix vol only if its above dead band threshold, else use the previous calculated vlaue + //Set bicarb mix vol only if its above dead band threshold, else use the previous set vlaue setBicarbMixVol( bicarbMixVol ); } @@ -1121,7 +1121,7 @@ if ( ACID_MIX_ID == mixId ) { - // control at set minimum interval + // control interval for acid if ( ( ++dialysateMix[ mixId ].controlTimerCounter >= ACID_MIX_CONTROL_INTERVAL ) ) { dialysateMix[ mixId ].controlTimerCounter = 0; @@ -1133,7 +1133,7 @@ if ( fabs ( getAcidBicarbTargetConductivity() - measuredAcidBicarbMixConductivity ) > ACID_DEADBAND_CONTROL ) { - // set acid mix volume if its above dead band threshold , else use previously calculated value + // set acid mix volume if its above dead band threshold , else use previous set value setAcidMixVol( acidMixVol ); }