From eec7917f89ca3eeb48a430c8d7b26a5204993384 Mon Sep 17 00:00:00 2001 From: Guillaume Chevillot Date: Thu, 20 Mar 2008 09:05:38 +0100 Subject: - Current limitation set command to High-Z so to be coherent turn on LEDs instead - Do not set back interrupts in current limitation IT because it is continuously called when we are in limitation --- analog/motor-power-avr/src/mp_pwm_L_.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'analog') diff --git a/analog/motor-power-avr/src/mp_pwm_L_.c b/analog/motor-power-avr/src/mp_pwm_L_.c index ebd6429a..d596cf95 100644 --- a/analog/motor-power-avr/src/mp_pwm_L_.c +++ b/analog/motor-power-avr/src/mp_pwm_L_.c @@ -161,11 +161,9 @@ ISR(ILIM_L_vect) { // following line orders to keep high Z state when faling edge will arrive state_L_ = CMD_STATE_HIGH_Z; - sei(); // set back interrupts - // Update LEDs - _L_LED0_0; - _L_LED1_0; + _L_LED0_1; + _L_LED1_1; return; } -- cgit v1.2.3