From f3e4ce6e3e8a259cee1c391712d0636d79f398e9 Mon Sep 17 00:00:00 2001 From: Guillaume Chevillot Date: Thu, 20 Mar 2008 09:07:50 +0100 Subject: 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 --- analog/motor-power-avr/src/main.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'analog/motor-power-avr/src') 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; -- cgit v1.2.3