1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01:00

remove debug

This commit is contained in:
J. Nick Koston
2025-09-23 22:48:52 -05:00
parent b9a5c57b77
commit af031530ce

View File

@@ -175,9 +175,7 @@ void USBUartComponent::loop() {
// Process USB data from the lock-free queue
UsbDataChunk *chunk;
int chunks_processed = 0;
while ((chunk = this->usb_data_queue_.pop()) != nullptr) {
chunks_processed++;
auto *channel = chunk->channel;
#ifdef USE_UART_DEBUGGER
@@ -194,11 +192,6 @@ void USBUartComponent::loop() {
this->chunk_pool_.release(chunk);
}
static constexpr int LOG_CHUNK_THRESHOLD = 5;
if (chunks_processed > LOG_CHUNK_THRESHOLD) {
ESP_LOGV(TAG, "Processed %d chunks from USB queue", chunks_processed);
}
// Log dropped USB data periodically
uint16_t dropped = this->usb_data_queue_.get_and_reset_dropped_count();
if (dropped > 0) {