25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
227 B

  1. #include "Logging.h"
  2. namespace logging {
  3. void setup() {
  4. #if _DEBUG
  5. while (!Serial);
  6. #endif
  7. if (Serial) {
  8. Serial.begin(LOG_SERIAL_SPEED);
  9. Log.begin(LOG_LEVEL, &Serial);
  10. Log.notice(F("Starting...\n"));
  11. }
  12. }
  13. }