mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
Use increment_dropped_count() internally in push()
This commit is contained in:
@@ -39,9 +39,7 @@ template<class T, uint8_t SIZE> 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;
|
||||
|
||||
Reference in New Issue
Block a user