LilygoTLoraPager: Re-add ISR GPIO service

This commit is contained in:
Dominic Höglinger 2025-10-08 17:44:16 +02:00
parent cf57d9e65f
commit 795a882280

View File

@ -13,6 +13,14 @@ constexpr auto* TAG = "TLoraPager";
bool tpagerInit() {
ESP_LOGI(TAG, LOG_MESSAGE_POWER_ON_START);
/* Install ISR service */
auto ret = gpio_install_isr_service((int)ESP_INTR_FLAG_IRAM | (int)ESP_INTR_FLAG_LEVEL2);
if (ret != ESP_OK) {
TT_LOG_E(TAG, "Couldn't install ISR service rc=%i", ret);
} else {
TT_LOG_E(TAG, "ISR Service installed on core %i", xPortGetCoreID());
}
/* 32 Khz and higher gives an issue where the screen starts dimming again above 80% brightness
* when moving the brightness slider rapidly from a lower setting to 100%.
* This is not a slider bug (data was debug-traced) */