Use FORCE_WAIT_BUTTON to override button wait.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-07-10 13:11:56 +02:00
parent 2cf8aae3fc
commit d131f2c235
+2
View File
@@ -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;