Index: firmware/App/Modes/ModeDrain.c =================================================================== diff -u -rb8f298547eb578000b3ff3cf55732fda7a689ce0 -re107dacab9f6c78574f1c26e1004e0dbdc8dba03 --- firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision b8f298547eb578000b3ff3cf55732fda7a689ce0) +++ firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision e107dacab9f6c78574f1c26e1004e0dbdc8dba03) @@ -40,7 +40,7 @@ // ********** private definitions ********** #define TARGET_DRAIN_PUMP_RPM 2400 ///< 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_WEIGHT_UNCHANGE_TIMEOUT_MS ( 2 * MS_PER_SECOND ) ///< Time period of unchanged weight during draining before timeout. #define DRAIN_EMPTY_TARE_WAIT ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) /// Time period to wait after drain complete and before taring load cells. @@ -232,7 +232,7 @@ DG_RESERVOIR_ID_T inactiveReservoir = getInactiveReservoir(); // if we have reached our target drain to volume (by weight) or cannot drain anymore, we are done draining - go back to generation idle mode - if ( TRUE == hasTargetDrainVolumeBeenReached( inactiveReservoir, DRAIN_WEIGHT_UNCHANGE_TIMEOUT ) ) + if ( TRUE == hasTargetDrainVolumeBeenReached( inactiveReservoir, DRAIN_WEIGHT_UNCHANGE_TIMEOUT_MS ) ) { DG_ACID_CONCENTRATES_RECORD_T acid; F32 acidBottleVolML;