From ead357c7021e48c806fb668e935ad324c1920bc7 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 21 Nov 2021 15:55:55 +0100 Subject: [PATCH] Do not output the YAML files in simu without DEBUG_YAML --- radio/src/storage/sdcard_yaml.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/src/storage/sdcard_yaml.cpp b/radio/src/storage/sdcard_yaml.cpp index 8abe6bf96..77c7037e2 100644 --- a/radio/src/storage/sdcard_yaml.cpp +++ b/radio/src/storage/sdcard_yaml.cpp @@ -148,7 +148,9 @@ static bool yaml_writer(void* opaque, const char* str, size_t len) UINT bytes_written; yaml_writer_ctx* ctx = (yaml_writer_ctx*)opaque; +#if defined(DEBUG_YAML) TRACE_NOCRLF("%.*s",len,str); +#endif ctx->result = f_write(ctx->file, str, len, &bytes_written); return (ctx->result == FR_OK) && (bytes_written == len);