Skip to content

Commit

Permalink
Remove conditional definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jun 22, 2024
1 parent 591897d commit c1ece98
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ void setup()
* SX1280 : Allowed values are in range from -18 to 13 dBm. PA Version range : -18 ~ 3dBm
* LR1121 : Allowed values are in range from -17 to 22 dBm (high-power PA) or -18 to 13 dBm (High-frequency PA)
* * * */
#if defined(USING_LR1121)
if (radio.setOutputPower(CONFIG_RADIO_OUTPUT_POWER) == RADIOLIB_ERR_INVALID_OUTPUT_POWER) {
Serial.println(F("Selected output power is invalid for this module!"));
while (true);
}
#endif

#if !defined(USING_SX1280) && !defined(USING_LR1121)
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,10 @@ void setup()
* SX1280 : Allowed values are in range from -18 to 13 dBm. PA Version range : -18 ~ 3dBm
* LR1121 : Allowed values are in range from -17 to 22 dBm (high-power PA) or -18 to 13 dBm (High-frequency PA)
* * * */
#if defined(USING_LR1121)
if (radio.setOutputPower(CONFIG_RADIO_OUTPUT_POWER) == RADIOLIB_ERR_INVALID_OUTPUT_POWER) {
Serial.println(F("Selected output power is invalid for this module!"));
while (true);
}
#endif

#if !defined(USING_SX1280) && !defined(USING_LR1121)
/*
Expand Down
2 changes: 0 additions & 2 deletions examples/T3S3Factory/T3S3Factory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,10 @@ void setup()
* SX1280 : Allowed values are in range from -18 to 13 dBm. PA Version range : -18 ~ 3dBm
* LR1121 : Allowed values are in range from -17 to 22 dBm (high-power PA) or -18 to 13 dBm (High-frequency PA)
* * * */
#if defined(USING_LR1121)
if (radio.setOutputPower(CONFIG_RADIO_OUTPUT_POWER) == RADIOLIB_ERR_INVALID_OUTPUT_POWER) {
Serial.println(F("Selected output power is invalid for this module!"));
while (true);
}
#endif

#if !defined(USING_SX1280) && !defined(USING_LR1121)
/*
Expand Down

0 comments on commit c1ece98

Please sign in to comment.