Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -rdf70610b0fd07ef4757da8ab504ecc856e178fe1 -ra8d919375cdb830f52e82e2d1c72c8153f5f58ca --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision df70610b0fd07ef4757da8ab504ecc856e178fe1) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision a8d919375cdb830f52e82e2d1c72c8153f5f58ca) @@ -347,7 +347,7 @@ /*********************************************************************//** * @brief - * The tareReservoir function set the tare load cell variable to TRUE. + * The tareReservoir function sets the tare load cell variable to TRUE. * @details Inputs: none * @details Outputs: none * @return none @@ -359,6 +359,20 @@ /*********************************************************************//** * @brief + * The resetReservoirsLowestWeight function resets the lowest load cell + * weight of the reservoirs. + * @details Inputs: reservoirLowestWeight + * @details Outputs: reservoirLowestWeight + * @return none + *************************************************************************/ +void resetReservoirsLowestWeight( void ) +{ + reservoirLowestWeight[ DG_RESERVOIR_1 ] = MAX_RESERVOIR_WEIGHT; + reservoirLowestWeight[ DG_RESERVOIR_2 ] = MAX_RESERVOIR_WEIGHT; +} + +/*********************************************************************//** + * @brief * The getInactiveReservoir function gets the inactive reservoir. * @details Inputs: activeReservoir * @details Outputs: none @@ -435,6 +449,13 @@ if ( hasTimeOut || hasTargetReached ) { + // TODO remove Test code + if ( reservoirId == DG_RESERVOIR_1 ) + { + BOOL test = TRUE; + } + // TODO remove test code + result = TRUE; reservoirLowestWeight[ reservoirId ] = MAX_RESERVOIR_WEIGHT;