Index: firmware/App/Controllers/ConcentratePumps.c =================================================================== diff -u -r2fea76e972a450a97c74b2a9f627095032a3b586 -r0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5 --- firmware/App/Controllers/ConcentratePumps.c (.../ConcentratePumps.c) (revision 2fea76e972a450a97c74b2a9f627095032a3b586) +++ firmware/App/Controllers/ConcentratePumps.c (.../ConcentratePumps.c) (revision 0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5) @@ -76,7 +76,7 @@ OVERRIDE_F32_T measuredPumpSpeed; ///< Measured concentrate pump speed (mL/min) U16 togglePeriodCount; ///< Converted pump speed (mL/min) to toggle period counts (0.5 uS increment counts per step) - U08 direction; ///< Concentrate pump motor direction. + U08 direction; ///< Concentrate pump motor direction void ( *control )( U08 ); ///< Concentrate pump FPGA control function pointer void ( *setStepSpeed )( U16 ); ///< Concentrate pump FPGA set step speed function pointer } CONCENTRATE_PUMP_T; Index: firmware/App/Controllers/LoadCell.c =================================================================== diff -u -r484b185f0cf4b2ea0ba9de331573952b1b5124b4 -r0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5 --- firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision 484b185f0cf4b2ea0ba9de331573952b1b5124b4) +++ firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision 0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5) @@ -37,7 +37,7 @@ #define SIZE_OF_SMALL_LOAD_CELL_AVG 10 ///< Small load cell moving average has 10 samples. #define SIZE_OF_LARGE_LOAD_CELL_AVG 40 ///< Large load cell moving average has 40 samples. -/// Load cell data structure +/// Load cell data structure. typedef struct { U32 measuredReadingSum; ///< Raw load cell sums for averaging @@ -46,11 +46,11 @@ F32 smallFilterReadings[ SIZE_OF_SMALL_LOAD_CELL_AVG ]; ///< Load cell samples for small load cell moving average F32 smallFilterTotal; ///< Small filter rolling total - used to calc small load cell moving average - F32 smallFilteredWeight; ///< Load cell small filtered (8 sample) weight. + F32 smallFilteredWeight; ///< Load cell small filtered (8 sample) weight F32 largeFilterReadings[ SIZE_OF_LARGE_LOAD_CELL_AVG ]; ///< Load cell samples for large load cell moving average F32 largeFilterTotal; ///< Large filter rolling total - used to calc small load cell moving average - F32 largeFilteredWeight; ///< Load cell large filtered (32 sample) weight. + F32 largeFilteredWeight; ///< Load cell large filtered (32 sample) weight } LOADCELL_T; // ********** private data ********** @@ -61,8 +61,8 @@ static U32 loadCellFilterTimerCount = 0; ///< Load cell filtering timer count. static U32 loadCellDataPublicationTimerCounter = 0; ///< Load cell data publication timer counter to CAN bus. -static U32 smallReadingsIdx; ///< Index for next sample in load cell small rolling average sample array -static U32 largeReadingsIdx; ///< Index for next sample in load cell large rolling average sample array +static U32 smallReadingsIdx; ///< Index for next sample in load cell small rolling average sample array. +static U32 largeReadingsIdx; ///< Index for next sample in load cell large rolling average sample array. // ********** private function prototypes ********** Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r26929d4f3960103a83d939cc5aa197e5e8c00a86 -r0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 26929d4f3960103a83d939cc5aa197e5e8c00a86) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5) @@ -600,7 +600,7 @@ if ( flowRateDeviation < ROP_FLOW_TARGET_TOLERANCE ) { F32 const avgPressure = roPumpPressureRunningSum / flowVerificationCounter; - // If the flow has been achieved without reaching to the maximum pressure, set the new pressure + // If the flow has been achieved without reaching the maximum pressure, set the new pressure // otherwise, stay with the maximum allowed pressure as target pressure if ( avgPressure < getTargetROPumpPressure() ) { Index: firmware/App/Modes/ModeDrain.c =================================================================== diff -u -r484b185f0cf4b2ea0ba9de331573952b1b5124b4 -r0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5 --- firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision 484b185f0cf4b2ea0ba9de331573952b1b5124b4) +++ firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision 0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5) @@ -37,7 +37,7 @@ #define DRAIN_WEIGH_UNCHANGE_TIMEOUT ( 2 * MS_PER_SECOND ) ///< Time period of unchanged weight during draining before timeout. #define TARGET_RO_PRESSURE_PSI 130 ///< Target pressure for RO pump. -#define TARGET_RO_FLOW_RATE_L 0.5 ///< Target flow rate for RO pump. +#define TARGET_RO_FLOW_RATE_L 0.3 ///< Target flow rate for RO pump. // ********** private data **********