From ea7a5d1c63ad42eff5a0b23b0b022a992644b15d Mon Sep 17 00:00:00 2001 From: Marcus Linderoth Date: Wed, 28 Oct 2015 10:51:37 +0100 Subject: [PATCH] Remove fade away of LED when going into shutdown mode; it consumes power and is application-layer stuff. --- cpu/cc26xx-cc13xx/lpm.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/cpu/cc26xx-cc13xx/lpm.c b/cpu/cc26xx-cc13xx/lpm.c index 3484b74bf..567cea9c8 100644 --- a/cpu/cc26xx-cc13xx/lpm.c +++ b/cpu/cc26xx-cc13xx/lpm.c @@ -84,7 +84,7 @@ void lpm_shutdown(uint32_t wakeup_pin, uint32_t io_pull, uint32_t wake_on) { lpm_registered_module_t *module; - int i, j; + int i; uint32_t io_cfg = (IOC_STD_INPUT & ~IOC_IOPULL_M) | io_pull | wake_on; @@ -109,18 +109,6 @@ lpm_shutdown(uint32_t wakeup_pin, uint32_t io_pull, uint32_t wake_on) watchdog_periodic(); - /* fade away....... */ - j = 1000; - - for(i = j; i > 0; --i) { - leds_on(LEDS_ALL); - clock_delay_usec(i); - leds_off(LEDS_ALL); - clock_delay_usec(j - i); - } - - leds_off(LEDS_ALL); - /* Notify all modules that we're shutting down */ for(module = list_head(modules_list); module != NULL; module = module->next) {