Index: firmware/App/Controllers/Valves.c =================================================================== diff -u -r977c9e90a086a057c60b6347e08e5494745c247f -r2f1cd6becf82299dd06be00ec9881e4a64d817a6 --- firmware/App/Controllers/Valves.c (.../Valves.c) (revision 977c9e90a086a057c60b6347e08e5494745c247f) +++ firmware/App/Controllers/Valves.c (.../Valves.c) (revision 2f1cd6becf82299dd06be00ec9881e4a64d817a6) @@ -1372,14 +1372,16 @@ currentPWM = pwmInCounts[ valve ]; // Check if the direction is clockwise or not to use the right conversion equation - if ( valvesStatus[ valve ].bypassModeStatus.direction == VAVLE_DIR_CLOCKWISE ) + // TODO check the PWM conversion macros. These macros are not needed anywhere and they + // are only used for Bypass mode so they are not critical. + /*if ( valvesStatus[ valve ].bypassModeStatus.direction == VAVLE_DIR_CLOCKWISE ) { currentPWM = VALVE_CW_CNT_TO_PWM_CONVERSION( currentPWM ); } else { currentPWM = VALVE_CCW_CNT_TO_PWM_CONVERSION( currentPWM ); - } + }*/ valvesStatus[ valve ].bypassModeStatus.currentPWMInPercent = currentPWM; }