mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
Revert "Fixing sleep on stm32w108 cpu"
This reverts commit eac73ff68ce98e862def4bd671db03f7b9a3b438.
This commit is contained in:
parent
5fbefbd87b
commit
19a46266a5
@ -166,7 +166,7 @@ PROCESS_THREAD(udp_client_process, ev, data)
|
|||||||
if(etimer_expired(&wake_timer)){ // if timer hasn't expired do not go in deep sleep, in order to receive a response.
|
if(etimer_expired(&wake_timer)){ // if timer hasn't expired do not go in deep sleep, in order to receive a response.
|
||||||
printf("Sleeping...\r\n");
|
printf("Sleeping...\r\n");
|
||||||
halBoardPowerDown();//sensorsPowerDown();
|
halBoardPowerDown();//sensorsPowerDown();
|
||||||
clock_wait(SLEEP_INTERVAL_SECONDS * 1000); // Put system in deep sleep mode for a while.
|
sleep_seconds(SLEEP_INTERVAL_SECONDS); // Put system in deep sleep mode for a while.
|
||||||
halBoardPowerUp();//sensorsPowerUp();
|
halBoardPowerUp();//sensorsPowerUp();
|
||||||
printf("Awake\r\n");
|
printf("Awake\r\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user