aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-05-07 15:01:32 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-05-07 15:01:32 +0300
commite55b98655d1efb66e87f254f8c8869debd4900ba (patch)
tree612844e50db89bef37667d7b9672d4c4fa29654e /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
parent5a0f1a75ea1443f50f600baaa7413a4d4fbbfb90 (diff)
downloadTango-e55b98655d1efb66e87f254f8c8869debd4900ba.tar.gz
Tango-e55b98655d1efb66e87f254f8c8869debd4900ba.zip
unify hardware motor type and remove some warnings
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c4
1 files changed, 2 insertions, 2 deletions
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;