From b829bbee954e47a438a553f0191cdcccd5353317 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 31 Mar 2026 21:33:57 -1000 Subject: [PATCH] Use increment_dropped_count() internally in push() --- esphome/core/freertos_queue.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/core/freertos_queue.h b/esphome/core/freertos_queue.h index 0548ebfc71..4209472cc2 100644 --- a/esphome/core/freertos_queue.h +++ b/esphome/core/freertos_queue.h @@ -39,9 +39,7 @@ template class FreeRTOSQueue { return false; if (xQueueSend(this->handle_, &element, 0) != pdPASS) { - portENTER_CRITICAL(); - this->dropped_count_++; - portEXIT_CRITICAL(); + this->increment_dropped_count(); return false; } return true;