aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-06-13 09:45:52 +0300
committerAvi Levkovich <avi@twine-s.com>2018-06-13 09:45:52 +0300
commit0d5c2e03b1f0e06cd307eaa2d5b7eaab894126d5 (patch)
tree19119cd31ed779383beafbd12c32424baf5c1f3b /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
parent2d900a86cae2027dc43d73e92da889d6e1aa3f7b (diff)
downloadTango-0d5c2e03b1f0e06cd307eaa2d5b7eaab894126d5.tar.gz
Tango-0d5c2e03b1f0e06cd307eaa2d5b7eaab894126d5.zip
update I2C
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
index a1de29b08..847b777fa 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -31,6 +31,7 @@
#include "drivers/FPGA/FPGA.h"
#include "modules/thread/thread_ex.h"
+#include "Drivers/Peripheral_GPIO/GPIO.h"
Task_Handle Millisecond_Task_Handle;
/******************** Definitions ********************************************/
@@ -236,7 +237,6 @@ uint32_t MillisecLoop(uint32_t tick)
FPGA_Read_limit_Switches_Registers();
//Read_FPGA_GPI_Rgisters();//FPGA_Read_limit_Switches();
#endif
-
temp += MotorActivity;
if (MotorActivity)
{
@@ -340,6 +340,7 @@ uint32_t MillisecLoop(uint32_t tick)
{
for (Sensor_i = 0;Sensor_i < MAX_TEMPERATURE_SENSOR_ID;Sensor_i++)
MillisecReadFromTempSensor(Sensor_i, NULL);
+ ACTIVITY_RED_LED_CHANGE_MODE;
}
if (Onesecond_Tick)