Skip to content
Snippets Groups Projects
Commit 7d5020ea authored by fxk8y's avatar fxk8y :spider:
Browse files

Adding simple queue memory stats

parent cc529c26
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,9 @@ namespace SiliconTorch {
if (xQueueReceive(uartEvQ, (void*)&event, (TickType_t)portMAX_DELAY)) { // 0 = return immediately!
ESP_LOGI(TAG, "Got a new UART event! 🤩");
auto msgs = uxQueueMessagesWaiting(uartEvQ);
auto space = uxQueueSpacesAvailable(uartEvQ);
ESP_LOGI(TAG, "Got a new UART event! 🤩 QByte[ %d ] QMsg#[ %d ]", space, msgs);
switch (event.type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment