summaryrefslogtreecommitdiff
path: root/analog
diff options
context:
space:
mode:
authorGuillaume Chevillot2008-03-20 09:05:38 +0100
committerGuillaume Chevillot2008-03-20 09:05:38 +0100
commiteec7917f89ca3eeb48a430c8d7b26a5204993384 (patch)
treea432fdb0b62d021f530d9e2fc1b961b96d7fbb99 /analog
parent193dd6732798199a4a94749188a56635fda6dd90 (diff)
- 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
Diffstat (limited to 'analog')
-rw-r--r--analog/motor-power-avr/src/mp_pwm_L_.c6
1 files changed, 2 insertions, 4 deletions
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;
}