diff --git a/examples/RF24/scanner/scanner.ino b/examples/RF24/scanner/scanner.ino index 4d2755a..9643265 100644 --- a/examples/RF24/scanner/scanner.ino +++ b/examples/RF24/scanner/scanner.ino @@ -49,8 +49,6 @@ void setup(void) { // Serial.begin(115200); - delay(5000); - printf_begin(); Serial.println(F("\n\rRF24/examples/scanner/")); // diff --git a/src/nrf_to_nrf.h b/src/nrf_to_nrf.h index d1ad6f4..ab00abe 100644 --- a/src/nrf_to_nrf.h +++ b/src/nrf_to_nrf.h @@ -7,6 +7,10 @@ #ifndef __nrf52840_nrf24l01_H__ #define __nrf52840_nrf24l01_H__ #include +#if !defined(__MBED__) || defined(USE_TINYUSB) +// Needed for Serial.print on non-MBED enabled or adafruit-based nRF52 cores +#include "Adafruit_TinyUSB.h" +#endif #define NRF52_RADIO_LIBRARY #define DEFAULT_MAX_PAYLOAD_SIZE 32