From 11fcc3546c07078ee21c267324ce07a34c35f8c0 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sun, 14 Jan 2024 12:19:05 +0100 Subject: [PATCH] Automaticke ukladani formatovacich retezcu do PROGMEM. Verze 0.0.6. --- library.json | 2 +- library.properties | 2 +- src/trace.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/library.json b/library.json index 56ca27b..d771543 100644 --- a/library.json +++ b/library.json @@ -12,7 +12,7 @@ "type": "git", "url": "https://git.xpablo.cz/pablo2048/Trace.git" }, - "version": "0.0.5", + "version": "0.0.6", "license": "MIT", "frameworks": "arduino", "platforms": ["espressif8266","espressif32"], diff --git a/library.properties b/library.properties index fde368b..edd6001 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Trace -version=0.0.4 +version=0.0.6 author=Pavel Brychta maintainer=Pavel Brychta sentence=Trace application internals & messages via web server diff --git a/src/trace.h b/src/trace.h index 982c307..46a7634 100644 --- a/src/trace.h +++ b/src/trace.h @@ -125,7 +125,8 @@ void trace_forceupdate(); #define TOSTRING(x) STRINGIFY(x) #define TRACEPLUS(when, severity, ...) if (when != 0) TRACE(severity, __VA_ARGS__) -#define TRACE(severity, ...) trace_print(severity, __VA_ARGS__) +//#define TRACE(severity, ...) trace_print(severity, __VA_ARGS__) +#define TRACE(severity, text, ...) trace_print(severity, PSTR(text), ##__VA_ARGS__) #define TRACEFUNC(severity, ...) trace_printfunc(severity, __func__, __FILE__, TOSTRING(__LINE__), __VA_ARGS__) #define TRACEDUMP(severity, prefix, address, size) trace_dump(severity, prefix, address, size) #define TRACE_INIT(a) trace_init()