mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-07 02:18:09 +00:00
use common param name SX126X_ANT_SW instead of the SX1262_ANT_SW
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -492,16 +492,10 @@ void setup()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SX1262_ANT_SW
|
||||
// make analog PA vs not PA switch on SX1262 eval board work properly
|
||||
pinMode(SX1262_ANT_SW, OUTPUT);
|
||||
digitalWrite(SX1262_ANT_SW, 1);
|
||||
#endif
|
||||
|
||||
#ifdef SX1268_ANT_SW
|
||||
// make analog PA vs not PA switch on SX1268 eval board work properly
|
||||
pinMode(SX1268_ANT_SW, OUTPUT);
|
||||
digitalWrite(SX1268_ANT_SW, 1);
|
||||
#ifdef SX126X_ANT_SW
|
||||
// make analog PA vs not PA switch on SX126x eval board work properly
|
||||
pinMode(SX126X_ANT_SW, OUTPUT);
|
||||
digitalWrite(SX126X_ANT_SW, 1);
|
||||
#endif
|
||||
|
||||
// radio init MUST BE AFTER service.init, so we have our radio config settings (from nodedb init)
|
||||
|
||||
Reference in New Issue
Block a user