use top button to wake hibernated gat562 mesh watch
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
void powerOff() override {
|
void powerOff() override {
|
||||||
uint32_t button_pin = PIN_BUTTON2;
|
uint32_t button_pin = PIN_BUTTON1;
|
||||||
nrf_gpio_cfg_input(button_pin, NRF_GPIO_PIN_PULLUP);
|
nrf_gpio_cfg_input(button_pin, NRF_GPIO_PIN_PULLUP);
|
||||||
nrf_gpio_cfg_sense_set(button_pin, NRF_GPIO_PIN_SENSE_LOW);
|
nrf_gpio_cfg_sense_set(button_pin, NRF_GPIO_PIN_SENSE_LOW);
|
||||||
sd_power_system_off();
|
sd_power_system_off();
|
||||||
|
|||||||
Reference in New Issue
Block a user