From b3b1fa9c71caa87792142d53b19e047a51b31799 Mon Sep 17 00:00:00 2001 From: RocketGod <57732082+RocketGod-git@users.noreply.github.com> Date: Sat, 6 Sep 2025 21:49:46 -0700 Subject: [PATCH] Update app_main.c --- firmware/application/src/app_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/src/app_main.c b/firmware/application/src/app_main.c index 77ee76f..b781e5c 100644 --- a/firmware/application/src/app_main.c +++ b/firmware/application/src/app_main.c @@ -179,8 +179,8 @@ static void field_generator_rainbow_loop(void) { */ static void button_pin_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action) { device_mode_t mode = get_device_mode(); - // Temporarily allow only the analog card mode to respond to button operations - if (mode == DEVICE_MODE_TAG) { + // Allow button operations in both tag and reader mode + if (mode == DEVICE_MODE_TAG || mode == DEVICE_MODE_READER) { static nrf_drv_gpiote_pin_t pin_static; // Use static internal variables to store the GPIO where the current event occurred pin_static = pin; // Cache the button that currently triggers the event into an internal variable app_timer_start(m_button_check_timer, APP_TIMER_TICKS(50), &pin_static); // Start timer anti-shake