Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -r304797ba69ef356e1e9436f81a624c01126d6cd1 -rfba89d67dd2bef913e85a13563e2aa49f0e2e2f5 --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 304797ba69ef356e1e9436f81a624c01126d6cd1) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision fba89d67dd2bef913e85a13563e2aa49f0e2e2f5) @@ -435,7 +435,21 @@ BOOL hasTargetDrainVolumeBeenReached( DG_RESERVOIR_ID_T reservoirId, U32 timeout ) { BOOL result = FALSE; - F32 const loadcellWeight = getLoadCellSmallFilteredWeight( associatedLoadCell[ reservoirId ] ); + + F32 loadcellWeight = 0.0; + + // TODO remove this code once the load cell is repaired + if ( DG_RESERVOIR_1 == reservoirId ) + { + loadcellWeight = getLoadCellSmallFilteredWeight( LOAD_CELL_RESERVOIR_1_BACKUP ); + } + else + { + loadcellWeight = getLoadCellSmallFilteredWeight( associatedLoadCell[ reservoirId ] ); + } + // TODO remove the above code the load cell is repaired + + //F32 const loadcellWeight = getLoadCellSmallFilteredWeight( associatedLoadCell[ reservoirId ] ); U32 const targetDrainVolume = getReservoirDrainVolumeTargetMl(); if ( loadcellWeight < reservoirLowestWeight[ reservoirId ] )