mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
Added debug tasmota compliant
This commit is contained in:
parent
ca02de910d
commit
df69b70764
@ -46,16 +46,24 @@
|
|||||||
// debugging, this should not interfere with main sketch or other
|
// debugging, this should not interfere with main sketch or other
|
||||||
// libraries
|
// libraries
|
||||||
#ifdef TI_DEBUG
|
#ifdef TI_DEBUG
|
||||||
#ifdef ESP8266
|
// Tasmota build
|
||||||
#define TI_Debug(x) Serial1.print(x)
|
#ifdef CODE_IMAGE_STR
|
||||||
#define TI_Debugln(x) Serial1.println(x)
|
#define TI_Debug(x) AddLog_P2(LOG_LEVEL_DEBUG, x);
|
||||||
#define TI_Debugf(...) Serial1.printf(__VA_ARGS__)
|
#define TI_Debugln(x) AddLog_P2(LOG_LEVEL_DEBUG, x);
|
||||||
#define TI_Debugflush Serial1.flush
|
#define TI_Debugf(...) AddLog_P2(LOG_LEVEL_DEBUG, __VA_ARGS__);
|
||||||
|
#define TI_Debugflush {}
|
||||||
#else
|
#else
|
||||||
#define TI_Debug(x) Serial.print(x)
|
#ifdef ESP8266
|
||||||
#define TI_Debugln(x) Serial.println(x)
|
#define TI_Debug(x) Serial1.print(x)
|
||||||
#define TI_Debugf(...) Serial.printf(__VA_ARGS__)
|
#define TI_Debugln(x) Serial1.println(x)
|
||||||
#define TI_Debugflush Serial.flush
|
#define TI_Debugf(...) Serial1.printf(__VA_ARGS__)
|
||||||
|
#define TI_Debugflush Serial1.flush
|
||||||
|
#else
|
||||||
|
#define TI_Debug(x) Serial.print(x)
|
||||||
|
#define TI_Debugln(x) Serial.println(x)
|
||||||
|
#define TI_Debugf(...) Serial.printf(__VA_ARGS__)
|
||||||
|
#define TI_Debugflush Serial.flush
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define TI_Debug(x) {}
|
#define TI_Debug(x) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user