Skip to content

Commit

Permalink
Merge pull request #13 from TMRh20/FixForSerial
Browse files Browse the repository at this point in the history
Fixes are in (Serial & Scanner)
- include Adafruit_TinyUSB.h as required
- remove printf and delay from scanner example

Co-Authored by @2bndy5
  • Loading branch information
TMRh20 authored Mar 4, 2024
2 parents bd7a610 + 04ad2ba commit a33fc40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/RF24/scanner/scanner.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ void setup(void) {
//

Serial.begin(115200);
delay(5000);
printf_begin();
Serial.println(F("\n\rRF24/examples/scanner/"));

//
Expand Down
4 changes: 4 additions & 0 deletions src/nrf_to_nrf.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef __nrf52840_nrf24l01_H__
#define __nrf52840_nrf24l01_H__
#include <Arduino.h>
#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
Expand Down

0 comments on commit a33fc40

Please sign in to comment.