esp_timer: Fix Test ESP_TIMER_ISR dispatch method is not blocked
@@ -568,6 +568,7 @@ esp_err_t esp_timer_dump(FILE* stream)
timer_list_unlock(dispatch_method);
}
+ if (stream != NULL) {
fprintf(stream, "Timer stats:\n");
#if WITH_PROFILING
fprintf(stream, "%-20s %-10s %-12s %-12s %-12s %-12s %-12s\n",
@@ -577,7 +578,6 @@ esp_err_t esp_timer_dump(FILE* stream)
#endif
/* Print the buffer */
- if (stream != NULL) {
fputs(print_buf, stream);
}
