1
0
Fork 0

boards: Remove the pin sense setting

This is redundant (and therefore slightly misleading) we do not "sense"
the pins from the bootloader. We simply poll their status.
wasp-os-next
Daniel Thompson 2020-01-19 11:53:25 +00:00
parent cfe6b69534
commit fb03ef1dda
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
//------------- IMPLEMENTATION -------------//
void button_init(uint32_t pin)
{
nrf_gpio_cfg_sense_input(pin, BUTTON_PULL, NRF_GPIO_PIN_SENSE_LOW);
nrf_gpio_cfg_sense_input(pin, BUTTON_PULL, NRF_GPIO_PIN_NOSENSE);
#ifdef BUTTON_ENABLE
/*
* BUTTON_ENABLE is used when a switch is connected to another GPIO pin