Skip to content

Commit a0d0163

Browse files
Do not enter critical section without mutex
1 parent 6329721 commit a0d0163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/utilities/log_router/log_router.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int esp_log_router_flash_vprintf(const char *format, va_list args)
119119

120120
// Lock mutex for thread safety
121121
if (g_log_router_mutex) {
122-
xSemaphoreTake(g_log_router_mutex, pdMS_TO_TICKS(100));
122+
xSemaphoreTake(g_log_router_mutex, portMAX_DELAY);
123123
}
124124

125125
// Write to all files that match the log level

0 commit comments

Comments
 (0)