summaryrefslogtreecommitdiff
path: root/analog
diff options
context:
space:
mode:
authorGuillaume Chevillot2008-03-20 09:07:50 +0100
committerGuillaume Chevillot2008-03-20 09:07:50 +0100
commitf3e4ce6e3e8a259cee1c391712d0636d79f398e9 (patch)
treecb19086d21bd42d3737d7ee1188286a0fe884ca9 /analog
parenteec7917f89ca3eeb48a430c8d7b26a5204993384 (diff)
Update "LED Flash" function to show a reboot more explicitely :
LEDs on 0.25s and after LEDs off 0.25s instead off LEDs on 0.5s
Diffstat (limited to 'analog')
-rw-r--r--analog/motor-power-avr/src/main.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/analog/motor-power-avr/src/main.c b/analog/motor-power-avr/src/main.c
index 4a9b453e..b098fde3 100644
--- a/analog/motor-power-avr/src/main.c
+++ b/analog/motor-power-avr/src/main.c
@@ -121,8 +121,15 @@ led_flash(void)
DDRB = 0x0f;
PORTB = 0x0f;
- // Delay 0.5s
- utils_delay(0.5);
+ // Delay 0.25s
+ utils_delay(0.25);
+
+ // Shut down LEDs
+ DDRB = 0x00;
+ PORTB = 0x00;
+
+ // Delay 0.25s
+ utils_delay(0.25);
// Restore previous state
PORTB = portb_backup,
@@ -255,7 +262,6 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
case c ('c', 1):
/* Set current limit software value */
- //TODO
setCurLim_soft (args[0]);
break;