Index: firmware/App/Drivers/FluidPump.c =================================================================== diff -u -rd5574e12aa9638c933d11b9bee8d5cf024864440 -r051cd0430ef8342bd606115c98871e26dc24acf1 --- firmware/App/Drivers/FluidPump.c (.../FluidPump.c) (revision d5574e12aa9638c933d11b9bee8d5cf024864440) +++ firmware/App/Drivers/FluidPump.c (.../FluidPump.c) (revision 051cd0430ef8342bd606115c98871e26dc24acf1) @@ -30,21 +30,21 @@ // ********** private definitions ********** -#define FLUID_PUMP_COUNTS_2_RPM_NUMERATOR 1500000.0F ///< Numerator in counts to RPM conversion. -#define FLUID_PUMP_COUNTS_FOR_STOPPED_PUMP 0xFFFF ///< FPGA will report FFFF counts when pump is stopped. +#define FLUID_PUMP_COUNTS_2_RPM_NUMERATOR 1500000.0F ///< Numerator in counts to RPM conversion. +#define FLUID_PUMP_COUNTS_FOR_STOPPED_PUMP 0xFFFF ///< FPGA will report FFFF counts when pump is stopped. /// Payload record structure for fluid pump set PWM request typedef struct { - U32 pumpID; ///< Pump ID - U32 pwm; ///< Pump PWM magnitude (0..500). + U32 pumpID; ///< Pump ID + U32 pwm; ///< Pump PWM magnitude (0..500). } FLUID_PUMP_CMD_PAYLOAD_T; // ********** private data ********** -static U16 fluidPumpCmdDutyCycle[ NUM_OF_PUMPS ]; ///< Commanded duty cycles for fluid pumps. -static OVERRIDE_U32_T fluidPumpReadDutyCycle[ NUM_OF_PUMPS ]; ///< Fluid pump duty cycles read back from FPGA. -static OVERRIDE_F32_T fluidPumpMeasRPM[ NUM_OF_PUMPS ]; ///< Fluid pump measured speeds (RPM). +static U16 fluidPumpCmdDutyCycle[ NUM_OF_PUMPS ]; ///< Commanded duty cycles for fluid pumps. +static OVERRIDE_U32_T fluidPumpReadDutyCycle[ NUM_OF_PUMPS ]; ///< Fluid pump duty cycles read back from FPGA. +static OVERRIDE_F32_T fluidPumpMeasRPM[ NUM_OF_PUMPS ]; ///< Fluid pump measured speeds (RPM). // ********** private function prototypes ********** @@ -89,6 +89,7 @@ void readFluidPumps( void ) { U32 tach; + U32 pump; for ( pump = 0; pump < NUM_OF_PUMPS; pump++ ) {