您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
511 B

  1. #pragma once
  2. #include <Arduino.h>
  3. #ifdef _DEBUG
  4. #include <ArduinoLog.h>
  5. #define VERBOSE(f) Log.verbose(F("[" LOGGER_NAME "::" f "]\n"))
  6. #define VERBOSE_MSG(f, msg) Log.verbose(F("[" LOGGER_NAME "::" f "] " msg "\n"))
  7. #define VERBOSE_FORMAT(f, msg, ...) Log.verbose(F("[" LOGGER_NAME "::" f "] " msg "\n"), __VA_ARGS__)
  8. #else
  9. #define DISABLE_LOGGING 1
  10. #define VERBOSE(f)
  11. #define VERBOSE_MSG(f, msg)
  12. #define VERBOSE_FORMAT(f, msg, ...)
  13. #endif
  14. namespace debug {
  15. void waitForSerial();
  16. int freeRam();
  17. }