Index: firmware/App/Modes/ModeDrain.c =================================================================== diff -u -r8ddb7d51e6ab02591cb1c5692f62cfdf26ec7866 -rd442635899db4380b3a405f1537959d25c919c07 --- firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision 8ddb7d51e6ab02591cb1c5692f62cfdf26ec7866) +++ firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision d442635899db4380b3a405f1537959d25c919c07) @@ -35,7 +35,8 @@ #define TARGET_DRAIN_PUMP_RPM 2100 ///< Target drain pump speed (in RPM). #define DRAIN_WEIGHT_UNCHANGE_TIMEOUT ( 2 * MS_PER_SECOND ) ///< Time period of unchanged weight during draining before timeout. -#define DRAIN_EMPTY_TARE_WAIT ( MS_PER_SECOND ) ///< Time period to wait after drain complete and before taring load cells. +/// Time period to wait after drain complete and before taring load cells. +#define DRAIN_EMPTY_TARE_WAIT ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) #define TARGET_RO_PRESSURE_PSI 130 ///< Target pressure for RO pump. #define TARGET_RO_FLOW_RATE_L 0.3 ///< Target flow rate for RO pump. Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -r8ddb7d51e6ab02591cb1c5692f62cfdf26ec7866 -rd442635899db4380b3a405f1537959d25c919c07 --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 8ddb7d51e6ab02591cb1c5692f62cfdf26ec7866) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision d442635899db4380b3a405f1537959d25c919c07) @@ -483,8 +483,8 @@ /*********************************************************************//** * @brief - * The tareLoadCellsAtEmpty function tares the load cells for the inactive - * reservoir when ModeDrain empties it and tare request is pending. + * The tareLoadCellsAtEmpty function tares the load cells for the given + * reservoir when empty and tare request is pending. * @details Inputs: tareLoadCellRequest * @details Outputs: tareLoadCellRequest * @param reservoirId ID of reservoir to tare