Index: firmware/App/Controllers/MixingControl.c =================================================================== diff -u -r9862626891d641c84626e9b11373e523f5ef4208 -r3cafed12c435f95be8ae38a8e5a5cf20ec6b706f --- firmware/App/Controllers/MixingControl.c (.../MixingControl.c) (revision 9862626891d641c84626e9b11373e523f5ef4208) +++ firmware/App/Controllers/MixingControl.c (.../MixingControl.c) (revision 3cafed12c435f95be8ae38a8e5a5cf20ec6b706f) @@ -130,8 +130,8 @@ #define TOTAL_CONDUCTIVITY ( ACID_CONDUCTIVITY_POST + BICARB_CONDUCTIVITY_POST ) ///< Theoretical Dialysate conductivity -#define FLOW_SETTING_FOR_STATIC_CONTROL_INTERVAL_UPDATE 100.0F -#define STATIC_CONTROL_INTERVAL ( 2 * MS_PER_SECOND / TASK_GENERAL_INTERVAL ) +#define FLOW_SETTING_FOR_STATIC_CONTROL_INTERVAL_UPDATE 100.0F ///< Flowrate at which static update is applied for bicarb and dialysate +#define STATIC_CONTROL_INTERVAL ( 2 * MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which dialysate and bicarb mix is controlled (for qd <= 100 mL/min) /// Enumeration of dialysate Mixing id. typedef enum DialysateMixingID { @@ -450,8 +450,8 @@ balChamberSwitchingFreq = tdDialysateFlowRate / 30.0; balChamberSwitchingPeriod = ( SEC_PER_MIN ) / (U32)balChamberSwitchingFreq; - // For acid control period, we are using 3 cycles of balancing chamber switching period (for ex: At Qd = 600, switching period = 3sec, so acid control interval = 3*3 = 9sec - // For bicarb control period, we are using 5 cycles of balancing chamber switching period (for ex: At Qd = 600, switching period = 3sec, so bicarb control interval = 3*5 = 15sec + // For bicarb control period, we are using 3 cycles of balancing chamber switching period (for ex: At Qd = 600, switching period = 3sec, so acid control interval = 3*3 = 9sec + // For acid control period, we are using 5 cycles of balancing chamber switching period (for ex: At Qd = 600, switching period = 3sec, so bicarb control interval = 3*5 = 15sec if ( ( balChamberSwitchingPeriod > 0 ) && ( tdDialysateFlowRate <= FLOW_SETTING_FOR_STATIC_CONTROL_INTERVAL_UPDATE ) ) {