Put system to sleep when going idle

pull/3566/head
Wolfgang Betz 2017-01-11 08:46:20 +01:00
parent ade6722707
commit c6897c58dc
1 changed files with 4 additions and 3 deletions

View File

@ -21,6 +21,7 @@
*/
#include "rtos/rtos_idle.h"
#include "sleep_api.h"
static void default_idle_hook(void)
{
@ -28,7 +29,7 @@ static void default_idle_hook(void)
Unfortunately, this usually requires disconnecting the interface chip (debugger).
This can be done, but it would break the local file system.
*/
// sleep();
sleep();
}
static void (*idle_hook_fptr)(void) = &default_idle_hook;