Skip to content

Commit fa64bba

Browse files
committed
tweak for platform diffs of flash string def
1 parent 46f9e23 commit fa64bba

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/core/flux_base/flxCoreLog.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#pragma once
1414

1515
// Messaging/logging system for the framework
16-
//#include "flxCoreEvent.h"
16+
// #include "flxCoreEvent.h"
1717
#include <WString.h>
1818
#include <map>
1919
#include <stdarg.h>
@@ -143,7 +143,13 @@ class flxLogging
143143

144144
//-------------------------------------------------------------------------
145145
// generic log interface - for flash strings
146-
int logPrintf(const flxLogLevel_t level, bool newline, const arduino::__FlashStringHelper *fmt, ...);
146+
int logPrintf(const flxLogLevel_t level, bool newline,
147+
#if defined(ESP32) || defined(ESP8266)
148+
const __FlashStringHelper *fmt,
149+
#else
150+
const arduino::__FlashStringHelper *fmt,
151+
#endif
152+
...);
147153

148154
//-------------------------------------------------------------------------
149155
// generic log interface

0 commit comments

Comments
 (0)