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.

16 line
191 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. }
  11. }
  12. }