Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -rbb63d313f1edeb2fa72f992cedab03b13cdf644a -raf2cd84d3319b1e298057fe2d329aa7824306507 --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision bb63d313f1edeb2fa72f992cedab03b13cdf644a) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision af2cd84d3319b1e298057fe2d329aa7824306507) @@ -112,7 +112,7 @@ /// Conversion from PWM duty cycle % to commanded pump motor speed. #define DIP_PWM_TO_MOTOR_SPEED_RPM(pwm) ( ((pwm) - DIP_PWM_ZERO_OFFSET) * 4000.0F ) // Macro converts PWM to estimate flow rate needed to achieve it. -#define DIP_ML_PER_MIN_FROM_PWM(pwm) ( (( pwm + DIP_PWM_ZERO_OFFSET) * 684.73 ) + 49.121 ) +#define DIP_ML_PER_MIN_FROM_PWM(pwm) ( (( pwm - DIP_PWM_ZERO_OFFSET) * 684.73 ) + 49.121 ) /// Measured dialIn flow is filtered w/ moving average. @@ -1630,7 +1630,6 @@ return result; } - /*********************************************************************//** * @brief * The testSetDialInPumpTargetDutyCycle function resets the override of the @@ -1652,6 +1651,5 @@ return result; } - /**@}*/