Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
311 B

8 years ago
8 years ago
8 years ago
8 years ago
  1. #ifdef DEBUG_PORT
  2. #ifndef SONOFF_DUAL
  3. #define DEBUG_MSG(...) DEBUG_PORT.printf( __VA_ARGS__ )
  4. #define DEBUG_MSG_P(...) { char buffer[81]; snprintf_P(buffer, 80, __VA_ARGS__ ); DEBUG_PORT.printf( buffer ); }
  5. #endif
  6. #endif
  7. #ifndef DEBUG_MSG
  8. #define DEBUG_MSG(...)
  9. #define DEBUG_MSG_P(...)
  10. #endif