From 115684367483fb967e09e1739a26ecbfb17583da Mon Sep 17 00:00:00 2001 From: Junior Martinez <67972863+jmartinez-silabs@users.noreply.github.com> Date: Thu, 13 Apr 2023 21:17:12 -0400 Subject: [PATCH] Fix pigweedlogger assert. Wait until the previous send has completed/empty the buffer before verifing if we have enough space in the send buffer (#26093) --- examples/platform/silabs/PigweedLogger.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/platform/silabs/PigweedLogger.cpp b/examples/platform/silabs/PigweedLogger.cpp index de816da1cc6b81..280b232374ffcb 100644 --- a/examples/platform/silabs/PigweedLogger.cpp +++ b/examples/platform/silabs/PigweedLogger.cpp @@ -68,9 +68,8 @@ void init(void) int putString(const char * buffer, size_t size) { - assert(sWriteBufferPos < kWriteBufferSize); - xSemaphoreTake(sLoggerLock, portMAX_DELAY); + assert(sWriteBufferPos < kWriteBufferSize); for (size_t i = 0; i < size; ++i) {