Index: firmware/App/Modes/ModeGenIdle.c =================================================================== diff -u -r9512e64a5eaf8206fae80473b1c98d6892010cde -r7577b0a8157a90fe267b154e320877ff31574432 --- firmware/App/Modes/ModeGenIdle.c (.../ModeGenIdle.c) (revision 9512e64a5eaf8206fae80473b1c98d6892010cde) +++ firmware/App/Modes/ModeGenIdle.c (.../ModeGenIdle.c) (revision 7577b0a8157a90fe267b154e320877ff31574432) @@ -47,7 +47,7 @@ #define TARGET_RO_PRESSURE_PSI 130 ///< Target pressure for RO pump. #define TARGET_RO_FLOW_RATE_L 0.8F ///< Target flow rate for RO pump. -#define MAX_IDLE_RSVR_WEIGHT_GAIN 200.0F ///< Maximum mL gain of inactive reservoir in Gen Idle mode +#define MAX_IDLE_RSVR_WEIGHT_GAIN 200.0F ///< Maximum fluid gain of inactive reservoir in Gen Idle mode (mL) #define HD_LOST_COMM_TIMEOUT_MS (5 * SEC_PER_MIN * MS_PER_SECOND ) ///< The time of HD lost comm before DG transition back to standby. #define BAD_FILL_SUBSTATES_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the bad fill sub-states is published on the CAN bus. #define DATA_PUBLISH_COUNTER_START_COUNT 61 ///< Data publish counter start count. @@ -67,7 +67,7 @@ static OVERRIDE_U32_T genIdleDataPublicationInterval = { BAD_FILL_SUBSTATES_PUB_INTERVAL, BAD_FILL_SUBSTATES_PUB_INTERVAL, 0, 0 }; ///< Interval (in ms) at which to publish bad fill sub-states to CAN bus. -static F32 initialReservoirWeight; ///< Initial weight of incative reservoir in Gen Idle mode. +static F32 initialReservoirWeight; ///< Initial weight of inactive reservoir in Gen Idle mode. // ********** private function prototypes ********** @@ -319,7 +319,7 @@ // Check for unwanted filling if ( reservoirWeight > ( initialReservoirWeight + MAX_IDLE_RSVR_WEIGHT_GAIN ) ) { - SET_ALARM_WITH_1_U32_DATA( ALARM_ID_DG_INACTIVE_RESERVOIR_WEIGHT_OUT_OF_RANGE, reservoirWeight ); + SET_ALARM_WITH_2_U32_DATA( ALARM_ID_DG_INACTIVE_RESERVOIR_WEIGHT_OUT_OF_RANGE, initialReservoirWeight, reservoirWeight ); } return result;