From 58b58bc39201cd8702be1780d22e6340478feb43 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Mon, 15 Apr 2019 17:23:26 +0300 Subject: fix bug in ControlActivityLed --- Software/Embedded_SW/Embedded/Modules/Control/control.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Control') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c index c94f0335f..b316fd73f 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/control.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c @@ -173,19 +173,19 @@ uint32_t ControlActivityLed( uint32_t Parameter1) } /////////////////////////////////////////////////////////// if(jog.color == fastBILNK) - Pannel_Leds(POWER_ON_OFF,MODE_OFF); + Pannel_Leds(THREAD_JOGGING,MODE_OFF); else if((jog.color == BLINK) && (counter % Blink_Freq == 0) ) { - Pannel_Leds(POWER_ON_OFF,MODE_OFF); + Pannel_Leds(THREAD_JOGGING,MODE_OFF); } /////////////////////////////////////////////////////////// if(load.color == fastBILNK) - Pannel_Leds(POWER_ON_OFF,MODE_OFF); + Pannel_Leds(THREAD_LOAD,MODE_OFF); else if((load.color == BLINK) && (counter % Blink_Freq == 0) ) { - Pannel_Leds(POWER_ON_OFF,MODE_OFF); + Pannel_Leds(THREAD_LOAD,MODE_OFF); } /////////////////////////////////////////////////////////// if(cart1.color == fastBILNK) @@ -228,19 +228,19 @@ uint32_t ControlActivityLed( uint32_t Parameter1) } /////////////////////////////////////////////////////////// if(jog.color == fastBILNK) - Pannel_Leds(POWER_ON_OFF,MODE_ON); + Pannel_Leds(THREAD_JOGGING,MODE_ON); else if((jog.color == BLINK) && (counter % Blink_Freq == 0) ) { - Pannel_Leds(POWER_ON_OFF,MODE_ON); + Pannel_Leds(THREAD_JOGGING,MODE_ON); } /////////////////////////////////////////////////////////// if(load.color == fastBILNK) - Pannel_Leds(POWER_ON_OFF,MODE_ON); + Pannel_Leds(THREAD_LOAD,MODE_ON); else if((load.color == BLINK) && (counter % Blink_Freq == 0) ) { - Pannel_Leds(POWER_ON_OFF,MODE_ON); + Pannel_Leds(THREAD_LOAD,MODE_ON); } /////////////////////////////////////////////////////////// if(cart1.color == fastBILNK) -- cgit v1.3.1