Hide YAML traces behind DEBUG_YAML

This commit is contained in:
Raphael Coeffic
2021-11-10 11:06:59 +01:00
parent 09738f365d
commit fcab8f2b24
4 changed files with 22 additions and 11 deletions
+6
View File
@@ -93,6 +93,12 @@ uint8_t aux2SerialTracesEnabled();
#define TRACE_LUA_INTERNALS_WITH_LINEINFO(L, f_, ...)
#endif
#if defined(DEBUG_YAML)
#define TRACE_YAML(f_, ...) TRACE(f_, ##__VA_ARGS__)
#else
#define TRACE_YAML(f_, ...)
#endif
#if defined(DEBUG) && !defined(SIMU)
#define TIME_MEASURE_START(id) uint16_t t0 ## id = getTmr2MHz()
#define TIME_MEASURE_STOP(id) TRACE("Measure(" # id ") = %.1fus", float((uint16_t)(getTmr2MHz() - t0 ## id))/2)