From e55b98655d1efb66e87f254f8c8869debd4900ba Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Mon, 7 May 2018 15:01:32 +0300 Subject: unify hardware motor type and remove some warnings --- Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Control') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c index 8f45ac9ab..6ddea7920 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c @@ -213,7 +213,7 @@ int32_t MillisecReadFromMotor(TimerMotors_t MotorId, unsigned long Data, int Len uint32_t MillisecLoop(uint32_t tick) { TimerMotors_t Motor_i; - int Sensor_i; + TEMPERATURE_SENSOR_ID_ENUM Sensor_i; unsigned int MotorInfo = 0; //call all modules Millisec functions //test dancers and speed encoders @@ -261,7 +261,7 @@ uint32_t MillisecLoop(uint32_t tick) } } //FPGA_GetTempSensorBusy(); - for (Sensor_i = 0;Sensor_i < NUM_OF_MOTORS;Sensor_i++) + for (Sensor_i = TEMP_SENSE_ANALOG_MIXCHIP_TEMP;Sensor_i < MAX_TEMPERATURE_SENSOR_ID;Sensor_i++) { //if (TempDriverDriverResponse[Sensor_i].Busy == true) // continue; -- cgit v1.3.1