Skip to content

Commit 6f06896

Browse files
committed
Log buffer size
1 parent 4034961 commit 6f06896

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/api/SnapProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class SnapProcessor {
393393
wireChunk(wire_chunk_message);
394394
break;
395395
case NO_CODEC:
396-
ESP_LOGE(TAG, "Invalid codedc");
396+
ESP_LOGE(TAG, "Invalid codec");
397397
break;
398398
}
399399
// wire_chunk_message_free(&wire_chunk_message);

src/api/SnapProcessorRTOS.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SnapProcessorRTOS : public SnapProcessor {
6666
stop();
6767
}
6868

69-
ESP_LOGI(TAG, "%zu", size);
69+
ESP_LOGI(TAG, "size: %zu / buffer %d", size, buffer.available());
7070
if (!p_snap_output->isStarted() || size == 0) {
7171
ESP_LOGW(TAG, "not started");
7272
return 0;
@@ -93,6 +93,7 @@ class SnapProcessorRTOS : public SnapProcessor {
9393
task_started = true;
9494
task.Resume();
9595
}
96+
9697
return size_written;
9798
}
9899

0 commit comments

Comments
 (0)