From 78536f9427533da1d8750fe10502fc2a3201ba19 Mon Sep 17 00:00:00 2001 From: jgromes <jan.gromes@gmail.com> Date: Sun, 20 Feb 2022 18:04:25 +0100 Subject: [PATCH] [SX126x] Fixed CubeCell predefined module macro (#479) --- .../SX126x_Channel_Activity_Detection.ino | 2 +- .../SX126x_Channel_Activity_Detection_Interrupt.ino | 2 +- examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino | 2 +- examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino | 2 +- examples/SX126x/SX126x_Receive/SX126x_Receive.ino | 2 +- .../SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino | 2 +- examples/SX126x/SX126x_Settings/SX126x_Settings.ino | 2 +- examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino | 2 +- .../SX126x_Transmit_Interrupt/SX126x_Transmit_Interrupt.ino | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/SX126x/SX126x_Channel_Activity_Detection/SX126x_Channel_Activity_Detection.ino b/examples/SX126x/SX126x_Channel_Activity_Detection/SX126x_Channel_Activity_Detection.ino index 8b28f205..850347a2 100644 --- a/examples/SX126x/SX126x_Channel_Activity_Detection/SX126x_Channel_Activity_Detection.ino +++ b/examples/SX126x/SX126x_Channel_Activity_Detection/SX126x_Channel_Activity_Detection.ino @@ -30,7 +30,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_Channel_Activity_Detection_Interrupt/SX126x_Channel_Activity_Detection_Interrupt.ino b/examples/SX126x/SX126x_Channel_Activity_Detection_Interrupt/SX126x_Channel_Activity_Detection_Interrupt.ino index f7763773..91580d0e 100644 --- a/examples/SX126x/SX126x_Channel_Activity_Detection_Interrupt/SX126x_Channel_Activity_Detection_Interrupt.ino +++ b/examples/SX126x/SX126x_Channel_Activity_Detection_Interrupt/SX126x_Channel_Activity_Detection_Interrupt.ino @@ -30,7 +30,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino b/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino index d3b910db..2c394c5c 100644 --- a/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino +++ b/examples/SX126x/SX126x_FSK_Modem/SX126x_FSK_Modem.ino @@ -31,7 +31,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino b/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino index 30c1550b..ff386c36 100644 --- a/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino +++ b/examples/SX126x/SX126x_PingPong/SX126x_PingPong.ino @@ -27,7 +27,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); // save transmission states between loops int transmissionState = RADIOLIB_ERR_NONE; diff --git a/examples/SX126x/SX126x_Receive/SX126x_Receive.ino b/examples/SX126x/SX126x_Receive/SX126x_Receive.ino index 364509ea..b2f49d28 100644 --- a/examples/SX126x/SX126x_Receive/SX126x_Receive.ino +++ b/examples/SX126x/SX126x_Receive/SX126x_Receive.ino @@ -35,7 +35,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino b/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino index 4132617c..1b3daefd 100644 --- a/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino +++ b/examples/SX126x/SX126x_Receive_Interrupt/SX126x_Receive_Interrupt.ino @@ -36,7 +36,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_Settings/SX126x_Settings.ino b/examples/SX126x/SX126x_Settings/SX126x_Settings.ino index b601ae18..7777c75d 100644 --- a/examples/SX126x/SX126x_Settings/SX126x_Settings.ino +++ b/examples/SX126x/SX126x_Settings/SX126x_Settings.ino @@ -46,7 +46,7 @@ SX1268 radio2 = new Module(8, 4, 5, 6); //SX1261 radio3 = RadioShield.ModuleB; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino b/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino index c4857e2a..a287034e 100644 --- a/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino +++ b/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino @@ -31,7 +31,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); void setup() { Serial.begin(9600); diff --git a/examples/SX126x/SX126x_Transmit_Interrupt/SX126x_Transmit_Interrupt.ino b/examples/SX126x/SX126x_Transmit_Interrupt/SX126x_Transmit_Interrupt.ino index 69fd17c7..b4d44170 100644 --- a/examples/SX126x/SX126x_Transmit_Interrupt/SX126x_Transmit_Interrupt.ino +++ b/examples/SX126x/SX126x_Transmit_Interrupt/SX126x_Transmit_Interrupt.ino @@ -32,7 +32,7 @@ SX1262 radio = new Module(10, 2, 3, 9); //SX1262 radio = RadioShield.ModuleA; // or using CubeCell -//SX1262 radio = new Module(RADIOLIB_ONBOARD_MODULE); +//SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); // save transmission state between loops int transmissionState = RADIOLIB_ERR_NONE;