mirror of
https://github.com/polhenarejos/pico-keys-sdk.git
synced 2026-08-26 22:48:44 +01:00
Use FORCE_WAIT_BUTTON to override button wait.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -207,7 +207,9 @@ static bool rescue_require_user_presence(void) {
|
||||
return true;
|
||||
#else
|
||||
bool previous_force = force_button_wait;
|
||||
#ifdef FORCE_WAIT_BUTTON
|
||||
force_button_wait = true;
|
||||
#endif
|
||||
int ret = button_wait();
|
||||
force_button_wait = previous_force;
|
||||
return ret == 0;
|
||||
|
||||
Reference in New Issue
Block a user