Index: firmware/App/Controllers/Valves.c =================================================================== diff -u -r6499ea25921fcf67826fa0c35bb03caf411ba542 -r298eb8e602afa301789d0e92a2e3d98ba20633c2 --- firmware/App/Controllers/Valves.c (.../Valves.c) (revision 6499ea25921fcf67826fa0c35bb03caf411ba542) +++ firmware/App/Controllers/Valves.c (.../Valves.c) (revision 298eb8e602afa301789d0e92a2e3d98ba20633c2) @@ -33,7 +33,7 @@ #define ENERGIZED 1 ///< 1 for energized valve. #define ALL_VALVES_DEENERGIZED 0x0000 ///< 0 in U16 bit field for all valves. -#define MAX_VALVE_STATE_MISMATCH_COUNT 3 ///< Maximum number of times commanded valves state can fail to match read back valve states in a row. +#define MAX_VALVE_STATE_MISMATCH_COUNT (100 / TASK_PRIORITY_INTERVAL ) ///< Maximum number of times commanded valves state can fail to match read back valve states in a row. #define VALVES_STATE_PUB_INTERVAL ( MS_PER_SECOND / TASK_PRIORITY_INTERVAL ) ///< Interval ( ms / task time) at which valves states are published on CAN bus. #define DATA_PUBLISH_COUNTER_START_COUNT 50 ///< Data publish counter start count.