summaryrefslogtreecommitdiffhomepage
path: root/analog/motor-power-avr/src/mp_pwm_L_.c
diff options
context:
space:
mode:
Diffstat (limited to 'analog/motor-power-avr/src/mp_pwm_L_.c')
-rw-r--r--analog/motor-power-avr/src/mp_pwm_L_.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/analog/motor-power-avr/src/mp_pwm_L_.c b/analog/motor-power-avr/src/mp_pwm_L_.c
index 2ad3e329..ebd6429a 100644
--- a/analog/motor-power-avr/src/mp_pwm_L_.c
+++ b/analog/motor-power-avr/src/mp_pwm_L_.c
@@ -152,13 +152,21 @@ ISR(COMP_L_vect) {
// overcurrent detected by comparators
ISR(ILIM_L_vect) {
+ // Set outputs in High-Z
_L_AL_0;
_L_AH_0;
_L_BL_0;
_L_BH_0;
- sei(); // set back interrupts
+
// 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;
+
return;
}