From e03b674e1020abe2d1e5037804177d5bcadd617f Mon Sep 17 00:00:00 2001 From: jgromes <jan.gromes@gmail.com> Date: Wed, 27 Oct 2021 22:07:00 +0200 Subject: [PATCH] [SX127x] Skip tone() for CubeCell (CubeCell:CubeCell:CubeCell-Board) --- examples/SX127x/SX127x_FSK_Modem/SX127x_FSK_Modem.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SX127x/SX127x_FSK_Modem/SX127x_FSK_Modem.ino b/examples/SX127x/SX127x_FSK_Modem/SX127x_FSK_Modem.ino index d6294889..3239472d 100644 --- a/examples/SX127x/SX127x_FSK_Modem/SX127x_FSK_Modem.ino +++ b/examples/SX127x/SX127x_FSK_Modem/SX127x_FSK_Modem.ino @@ -175,8 +175,8 @@ void loop() { Serial.println(state); } - // tone() function is not available on ESP32 and Arduino Due - #if !defined(ESP32) && !defined(_VARIANT_ARDUINO_DUE_X_) + // tone() function is not available on ESP32, Arduino Due and CubeCell + #if !defined(ESP32) && !defined(_VARIANT_ARDUINO_DUE_X_) && !defined(__ASR6501__) // transmit FM tone at 1000 Hz for 1 second // (DIO2 is connected to Arduino pin 4) tone(4, 1000);