1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 17:22:20 +01:00
This commit is contained in:
J. Nick Koston
2025-06-12 16:19:15 -05:00
parent 1e12614f9a
commit 73b40dd2e7

View File

@@ -239,9 +239,9 @@ void IRAM_ATTR ESP32TouchComponent::touch_isr_handler(void *arg) {
event.is_touched = is_touched; event.is_touched = is_touched;
// Send to queue from ISR // Send to queue from ISR
BaseType_t xHigherPriorityTaskWoken = pdFALSE; BaseType_t x_higher_priority_task_woken = pdFALSE;
xQueueSendFromISR(component->touch_queue_, &event, &xHigherPriorityTaskWoken); xQueueSendFromISR(component->touch_queue_, &event, &x_higher_priority_task_woken);
if (xHigherPriorityTaskWoken) { if (x_higher_priority_task_woken) {
portYIELD_FROM_ISR(); portYIELD_FROM_ISR();
} }
} }