Verified Commit ef03f13b authored by Rahix's avatar Rahix
Browse files

fix(hw-locks): Don't show warnings for 0 wait acquires

Signed-off-by: Rahix's avatarRahix <>
parent dcb9c8f9
Pipeline #3317 passed with stages
in 51 seconds
......@@ -28,9 +28,14 @@ int hwlock_acquire(enum hwlock_periph p, TickType_t wait)
TaskHandle_t task = xTaskGetCurrentTaskHandle();
if (xSemaphoreTake(hwlock_mutex[p], wait) != pdTRUE) {
/* Don't print warnings for 0 wait acquires */
if (wait == 0) {
return -EBUSY;
"Lock %u is busy, held by: %s, attempt to accquire by: %s",
"Lock %u is busy! Held by \"%s\" and attempted to accquire by \"%s\"",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment