Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc. http://www.blynk.cc/
Dependents: Blynk_RBL_BLE_Nano Blynk_MicroBit Blynk_Serial Blynk_RBL_BLE_Nano
Diff: Blynk/BlynkDebug.h
- Revision:
- 7:8879692d4e6c
- Parent:
- 6:b942afadf9be
- Child:
- 9:7369ec77a3ea
--- a/Blynk/BlynkDebug.h Thu Jun 23 23:00:40 2016 +0000 +++ b/Blynk/BlynkDebug.h Wed Oct 12 09:18:39 2016 +0300 @@ -52,6 +52,7 @@ #define COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) #define BLYNK_ATTR_PACKED __attribute__ ((__packed__)) #define BLYNK_NORETURN __attribute__ ((noreturn)) +#define BLYNK_UNUSED __attribute__((__unused__)) // Causes problems on some platforms #define BLYNK_FORCE_INLINE inline //__attribute__((always_inline)) @@ -158,7 +159,7 @@ #include <stdio.h> #include <stdarg.h> - static + BLYNK_UNUSED void blynk_dbg_print(const char* BLYNK_PROGMEM fmt, ...) { va_list ap; @@ -166,7 +167,7 @@ char buff[128]; BLYNK_PRINT.print('['); BLYNK_PRINT.print(millis()); - BLYNK_PRINT.print(F("] ")); + BLYNK_PRINT.print(BLYNK_F("] ")); #if defined(__AVR__) vsnprintf_P(buff, sizeof(buff), fmt, ap); #else