We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975a715 commit 88b7abeCopy full SHA for 88b7abe
src/api/SnapProcessorRP2040.h
@@ -32,9 +32,15 @@ class SnapProcessorRP2040 : public SnapProcessor {
32
ESP_LOGW(TAG, "begin: %d", buffer_count * 1024);
33
// regular begin logic
34
bool result = SnapProcessor::begin();
35
- // allocate buffer, so that we could use psram
36
- size_queue.resize(RTOS_MAX_QUEUE_ENTRY_COUNT);
+
+ // allocate buffer
37
+ buffer.setBlockingRead(true);
38
+ buffer.setBlockingWrite(true);
39
buffer.resize(buffer_count * 1024);
40
41
+ // we need to read back the buffer with the written sizes
42
+ size_queue.resize(RTOS_MAX_QUEUE_ENTRY_COUNT);
43
44
is_active = false;
45
return result;
46
}
0 commit comments