Change lpm_shutdown() API call:
So that the caller can specify pin pull and wakeup state
This commit is contained in:
parent
5644e95fb6
commit
cf99160706
3 changed files with 6 additions and 3 deletions
|
@ -137,7 +137,7 @@ button_press_handler(uint8_t ioid)
|
|||
sensors_changed(&button_right_sensor);
|
||||
}
|
||||
} else {
|
||||
lpm_shutdown(BOARD_IOID_KEY_RIGHT);
|
||||
lpm_shutdown(BOARD_IOID_KEY_RIGHT, IOC_IOPULL_UP, IOC_WAKE_ON_LOW);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue