Index: firmware/App/Controllers/ConcentratePumps.c =================================================================== diff -u -r145fd716a856f864f39fb0f9884865f6e45b9256 -ra08213c3d131203c21554d743c3ccb02575b70da --- firmware/App/Controllers/ConcentratePumps.c (.../ConcentratePumps.c) (revision 145fd716a856f864f39fb0f9884865f6e45b9256) +++ firmware/App/Controllers/ConcentratePumps.c (.../ConcentratePumps.c) (revision a08213c3d131203c21554d743c3ccb02575b70da) @@ -540,6 +540,8 @@ *************************************************************************/ void setConcentratePumpTargetSpeed( CONCENTRATE_PUMPS_T pumpId, F32 targetSpeed_ml_min, F32 targetVolume_ml ) { + printf("[TRACE-DOSE2] tick=%lu pumpId=%d targetSpeed=%.2f targetVol=%.2f callerRevCntBefore=%lu\n", + getMSTimerCount(), pumpId, targetSpeed_ml_min, targetVolume_ml, getConcPumpTargetRevolutionCount(pumpId)); if ( pumpId < NUM_OF_CONCENTRATE_PUMPS ) { if ( targetSpeed_ml_min >= 0.0 ) @@ -846,6 +848,9 @@ static void stopConcentratePump( CONCENTRATE_PUMPS_T pumpId ) { BOOL parkPump = getConcPumpParkRequest( pumpId ); + printf("[TRACE-DOSE3] tick=%lu STOP called pumpId=%d wasRunning=%d revCntAtStop=%lu\n", + getMSTimerCount(), pumpId, concentratePumps[pumpId].hasTurnOnPumpsBeenRequested, + getConcPumpCurrentMeasuredRevolutionCount(pumpId)); hasParkBeenRequested[ pumpId ].data = FALSE; // reset park request for next time concentratePumps[ pumpId ].hasTurnOnPumpsBeenRequested = FALSE; // Just to make sure pump is in Off state. @@ -961,6 +966,9 @@ if ( ( FALSE == concentratePumps[ pumpId ].hasTurnOnPumpsBeenRequested ) || ( ZERO_REVOLUTION_COUNT == getConcPumpCurrentMeasuredRevolutionCount( pumpId ) ) ) { + printf("[TRACE-DOSE4] tick=%lu pumpId=%d forced OFF: hasTurnOnReq=%d measRevCnt=%lu\n", + getMSTimerCount(), pumpId, concentratePumps[pumpId].hasTurnOnPumpsBeenRequested, + getConcPumpCurrentMeasuredRevolutionCount(pumpId)); state = CONCENTRATE_PUMP_OFF_STATE; stopConcentratePump( pumpId ); } @@ -1001,6 +1009,9 @@ if ( ( FALSE == concentratePumps[ pumpId ].hasTurnOnPumpsBeenRequested ) || ( ZERO_REVOLUTION_COUNT == getConcPumpCurrentMeasuredRevolutionCount( pumpId ) ) ) { + printf("[TRACE-DOSE4] tick=%lu pumpId=%d forced OFF: hasTurnOnReq=%d measRevCnt=%lu\n", + getMSTimerCount(), pumpId, concentratePumps[pumpId].hasTurnOnPumpsBeenRequested, + getConcPumpCurrentMeasuredRevolutionCount(pumpId)); state = CONCENTRATE_PUMP_OFF_STATE; stopConcentratePump( pumpId ); }