8000 nrf5/modules/machine: Adding __WFE() on machine.sleep() · ladyada/circuitpython@4e1b9ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e1b9ac

Browse files
committed
nrf5/modules/machine: Adding __WFE() on machine.sleep()
1 parent 4afa41a commit 4e1b9ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nrf5/modules/machine/modmachine.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ STATIC mp_obj_t machine_soft_reset(void) {
148148
MP_DEFINE_CONST_FUN_OBJ_0(machine_soft_reset_obj, machine_soft_reset);
149149

150150
STATIC mp_obj_t machine_sleep(void) {
151+
__WFE();
151152
return mp_const_none;
152153
}
153154
MP_DEFINE_CONST_FUN_OBJ_0(machine_sleep_obj, machine_sleep);

0 commit comments

Comments
 (0)
0