From 332fb7aa4d931ecfa5501730e8567cf036ecc563 Mon Sep 17 00:00:00 2001 From: gemu2015 Date: Sun, 14 Jan 2024 19:35:22 +0100 Subject: [PATCH] fix irq --- lib/lib_display/UDisplay/uDisplay.cpp | 4 ++-- lib/lib_display/UDisplay/uDisplay.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/lib_display/UDisplay/uDisplay.cpp b/lib/lib_display/UDisplay/uDisplay.cpp index 873798cab52f..cf56cb42fe1e 100755 --- a/lib/lib_display/UDisplay/uDisplay.cpp +++ b/lib/lib_display/UDisplay/uDisplay.cpp @@ -1852,9 +1852,9 @@ for(y=h; y>0; y--) { #ifdef USE_UNIVERSAL_TOUCH +uint8_t ut_irq_flg; - -static void USE_IRAM_ATTR ut_touch_irq() { +void IRAM_ATTR ut_touch_irq(void) { ut_irq_flg = 1; } diff --git a/lib/lib_display/UDisplay/uDisplay.h b/lib/lib_display/UDisplay/uDisplay.h index 1624dfde6af6..8a83d2fc0676 100755 --- a/lib/lib_display/UDisplay/uDisplay.h +++ b/lib/lib_display/UDisplay/uDisplay.h @@ -431,7 +431,6 @@ class uDisplay : public Renderer { uint8_t ut_i2caddr; int8_t ut_reset; int8_t ut_irq; - unt8_t ut_irq_flg; char ut_name[8]; uint8_t ut_init_code[32]; uint8_t ut_touch_code[16];