mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-18 20:35:57 +02:00
Disable button press by default since LED may not be properly configured until it is commissioned.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -197,7 +197,10 @@ bool button_pressed_state = false;
|
|||||||
uint32_t button_pressed_time = 0;
|
uint32_t button_pressed_time = 0;
|
||||||
uint8_t button_press = 0;
|
uint8_t button_press = 0;
|
||||||
bool wait_button() {
|
bool wait_button() {
|
||||||
uint32_t button_timeout = 15000;
|
/* Disabled by default. As LED may not be properly configured,
|
||||||
|
it will not be possible to indicate button press unless it
|
||||||
|
is commissioned. */
|
||||||
|
uint32_t button_timeout = 0;
|
||||||
if (phy_data.up_btn_present) {
|
if (phy_data.up_btn_present) {
|
||||||
button_timeout = phy_data.up_btn * 1000;
|
button_timeout = phy_data.up_btn * 1000;
|
||||||
if (button_timeout == 0) {
|
if (button_timeout == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user