Index: firmware/App/Modes/ModeDrain.c =================================================================== diff -u -r34ae229d1508df89630f4dc5fbe9291d135f0686 -r79d0c6ca5e03581ba1b4a142f5b450bf4547dded --- firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision 34ae229d1508df89630f4dc5fbe9291d135f0686) +++ firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision 79d0c6ca5e03581ba1b4a142f5b450bf4547dded) @@ -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. @@ -245,7 +245,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;