Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -rc9cb494c004e390155ce7c8b3cda96cf8c1b5fa7 -r6a6c064bdab77b9b42d25910d94da55812d00ffa --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision c9cb494c004e390155ce7c8b3cda96cf8c1b5fa7) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 6a6c064bdab77b9b42d25910d94da55812d00ffa) @@ -157,7 +157,7 @@ static F32 flowReadings[ SIZE_OF_ROLLING_AVG ]; ///< holds flow samples for a rolling average static U32 flowReadingsIdx = 0; ///< index for next sample in rolling average array static F32 flowReadingsTotal = 0.0; ///< rolling total - used to calc average -static U32 flowReadingsCount = 0; ///< # of samples in flow rolling average buffer +static U32 flowReadingsCount = 0; ///< number of samples in flow rolling average buffer static U32 flowReadingsTmrCtr = 0; ///< determines when to add samples to filter static U32 bpCurrErrorDurationCtr = 0; ///< used for tracking persistence of bp current errors @@ -819,7 +819,8 @@ // TODO - temporary debug code - remove later char debugFlowStr[ 256 ]; - sprintf( debugFlowStr, "Tgt:%5d, Flow:%5d, Speed:%5d RPM, Rotor:%5d RPM, Curr:%5d mA, PWM:%5d \n", flowStPt, (S32)measFlow, (S32)measMCSpd, (S32)measRotSpd, (S32)measMCCurr, (S32)pumpPWMPctDutyCycle ); +// sprintf( debugFlowStr, "Tgt:%5d, Flow:%5d, Speed:%5d RPM, Rotor:%5d RPM, Curr:%5d mA, PWM:%5d \n", flowStPt, (S32)measFlow, (S32)measMCSpd, (S32)measRotSpd, (S32)measMCCurr, (S32)pumpPWMPctDutyCycle ); + sprintf( debugFlowStr, "Tgt:%5d, Flow:%5d \n", flowStPt, (S32)measFlow ); sendDebugData( (U08*)debugFlowStr, strlen(debugFlowStr) ); #endif broadcastBloodFlowData( flowStPt, measFlow, measRotSpd, measSpd, measMCSpd, measMCCurr, pumpPWMPctDutyCycle ); Index: firmware/App/Controllers/DialOutFlow.c =================================================================== diff -u -rc9cb494c004e390155ce7c8b3cda96cf8c1b5fa7 -r6a6c064bdab77b9b42d25910d94da55812d00ffa --- firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision c9cb494c004e390155ce7c8b3cda96cf8c1b5fa7) +++ firmware/App/Controllers/DialOutFlow.c (.../DialOutFlow.c) (revision 6a6c064bdab77b9b42d25910d94da55812d00ffa) @@ -773,7 +773,7 @@ } } -/************************************************************************* +/*********************************************************************//** * @brief * The checkDialOutPumpRotor function checks the rotor for the dialysate outlet \n * pump. If homing, this function will stop when hall sensor detected. If pump \n @@ -800,7 +800,7 @@ } } -/************************************************************************* +/*********************************************************************//** * @brief * The checkDialOutPumpDirection function checks the set direction vs. \n * the direction implied by the sign of the measured MC speed. @@ -911,7 +911,7 @@ } } -/************************************************************************* +/*********************************************************************//** * @brief * The checkDialOutPumpMCCurrent function checks the measured MC current vs. \n * the set state of the dialOut pump (stopped or running). Index: firmware/App/HDCommon.h =================================================================== diff -u -r186d10f0644b9726f1a632197a0ccfba7b00bf48 -r6a6c064bdab77b9b42d25910d94da55812d00ffa --- firmware/App/HDCommon.h (.../HDCommon.h) (revision 186d10f0644b9726f1a632197a0ccfba7b00bf48) +++ firmware/App/HDCommon.h (.../HDCommon.h) (revision 6a6c064bdab77b9b42d25910d94da55812d00ffa) @@ -40,7 +40,7 @@ #define DISABLE_MOTOR_CURRENT_CHECKS 1 #define DISABLE_PUMP_FLOW_CHECKS 1 #define DISABLE_PUMP_SPEED_CHECKS 1 -// #define DISABLE_PUMP_DIRECTION_CHECKS 1 + #define DISABLE_PUMP_DIRECTION_CHECKS 1 #define DISABLE_PRESSURE_CHECKS 1 // #define SHOW_LOAD_CELL_IN_ROTOR_RPM 1 // #define SHOW_RAW_FLOW_VALUES 1