[riot-devel] LPM idle_thread

2015-05-09 Thread Frank Holtz
Hello, why is LPM_SLEEP or LPM_POWERDOWN is commented out? kernel_init.c: --- static void *idle_thread(void *arg) { (void) arg; while (1) { if (lpm_prevent_sleep) { lpm_set(LPM_IDLE); } else {

Re: [riot-devel] LPM idle_thread

2015-05-09 Thread Oleg Hahm
Hi Frank! why is LPM_SLEEP or LPM_POWERDOWN is commented out? I think it's mostly commented out for debugging. Debugging with power save modes can become really nasty (even printf() debugging). However, I agree this shouldn't be solved like this. Another case for DEVELHELP, maybe? Cheers,

Re: [riot-devel] LPM idle_thread

2015-05-09 Thread Ludwig Ortmann
Hi, DEVELHELP should not be used to change the semantics of things. Cheers, Ludwig Am 9. Mai 2015 18:43:36 MESZ, schrieb Oleg Hahm oliver.h...@inria.fr: Hi Frank! why is LPM_SLEEP or LPM_POWERDOWN is commented out? I think it's mostly commented out for debugging. Debugging with power save