8000
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 fa61b3b commit 70656aaCopy full SHA for 70656aa
cores/esp32/esp32-hal-uart.c
@@ -481,7 +481,7 @@ int log_printf(const char *format, ...)
481
vsnprintf(temp, len+1, format, arg);
482
#if !CONFIG_DISABLE_HAL_LOCKS
483
if(_uart_bus_array[s_uart_debug_nr].lock){
484
- while (xSemaphoreTake(_uart_bus_array[s_uart_debug_nr].lock, portMAX_DELAY) != pdPASS);
+ xSemaphoreTake(_uart_bus_array[s_uart_debug_nr].lock, portMAX_DELAY);
485
ets_printf("%s", temp);
486
xSemaphoreGive(_uart_bus_array[s_uart_debug_nr].lock);
487
} else {
@@ -491,7 +491,7 @@ int log_printf(const char *format, ...)
491
492
#endif
493
va_end(arg);
494
- if(len > sizeof(loc_buf)){
+ if(len >= sizeof(loc_buf)){
495
free(temp);
496
}
497
return len;
0 commit comments