Fix button force.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-06-26 18:08:20 +02:00
parent 066f88a87b
commit 76601bced4
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -41,6 +41,7 @@ bool is_req_button_pending(void) {
bool cancel_button = false;
bool touch_accept_button = false;
bool force_button_wait = false;
#if !defined(ENABLE_EMULATION)
#ifdef ESP_PLATFORM
@@ -103,10 +104,13 @@ int button_wait(void) {
if (phy_data.up_btn_present) {
button_timeout = phy_data.up_btn * 1000;
}
if (button_timeout == 0) {
if (button_timeout == 0 && !force_button_wait) {
signal_emit(SIGNAL_USER_PRESENCE_COMPLETED);
return 0;
}
if (button_timeout == 0) {
button_timeout = 30000;
}
signal_user_presence_request_data_t data = {
.timeout = button_timeout / 1000,
};
+1
View File
@@ -29,5 +29,6 @@ extern int button_wait(void);
extern void button_task(void);
extern bool cancel_button;
extern bool touch_accept_button;
extern bool force_button_wait;
#endif // BUTTON_H