Verze 1.1.0 - TRACEPLUS() je nyni obecne definovane a pouziva constexpr

This commit is contained in:
2024-07-10 15:49:11 +02:00
parent b2d4fcdc4c
commit 8f6521f761
4 changed files with 14 additions and 14 deletions

View File

@ -1,16 +1,14 @@
#include <trace.h>
#define TRACE(severity, fmt, ...) trace_print(severity, (PGM_P)PSTR(fmt), ## __VA_ARGS__)
#define TRACE_INIT trace_init()
#define TRACE_ADDWEB(srv) trace_addweb(srv)
#define TRACE_POLL trace_poll()
void setup(void)
{
Serial.begin(115200);
TRACE(TRACE_INFO, F("Setup..."));
}
void loop(void)
{
TRACE(TRACE_INFO, F("loop..."));
delay(1000);
}