mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 07:02:21 +01:00
remove debug
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user