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 );