From 20099b61e8d843ae6a20fb51d624696937fc2bec Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 2 Sep 2024 17:28:18 +0200 Subject: [PATCH] Fix ESP32 GPIO led no. Signed-off-by: Pol Henarejos --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index c006440..35c4d89 100644 --- a/src/main.c +++ b/src/main.c @@ -475,11 +475,10 @@ int main(void) { #endif #endif - //ccid_prepare_receive(&ccid); #ifdef ESP_PLATFORM uint8_t gpio = GPIO_NUM_48; if (file_has_data(ef_phy)) { - if (file_read_uint8_offset(ef_phy, PHY_OPTS + 1) & PHY_OPT_GPIO) { + if (file_read_uint8_offset(ef_phy, PHY_OPTS) & PHY_OPT_GPIO) { gpio = file_get_data(ef_phy)[PHY_LED_GPIO]; } }