Skip to content

Commit

Permalink
Merge pull request ArduPilot#24 from wvarty/private/wvarty/legacy-har…
Browse files Browse the repository at this point in the history
…dware

Added pulldown for older hardware
  • Loading branch information
JyeSmith committed Feb 6, 2020
2 parents ae5d2ec + 0a35b0b commit fa54342
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/src/targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#endif
/// General Features ///
#define FEATURE_OPENTX_SYNC //uncomment to use OpenTX packet sync feature (requires OpenTX 2.4 onwards) - this reduces latency.
// #define LEGACY_HARDWARE // Uncomment for old TX modules with resistors on half duplex serial UART
/////////////////////////

#ifdef TARGET_TTGO_LORA_V1_AS_TX
Expand Down
8 changes: 5 additions & 3 deletions src/src/tx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ void DetectOtherRadios()

void setup()
{
#ifdef LEGACY_HARDWARE
pinMode(4, INPUT_PULLDOWN);
#endif
pinMode(36, INPUT_PULLUP);

Serial.begin(115200);
Serial.println("ExpressLRS TX Module Booted...");

Expand All @@ -415,9 +420,6 @@ void setup()
// Get base mac address
esp_read_mac(baseMac, ESP_MAC_WIFI_STA);

pinMode(4, INPUT_PULLUP);
pinMode(36, INPUT_PULLUP);

// Print base mac address
// This should be copied to common.h and is used to generate a unique hop sequence, DeviceAddr, and CRC.
// TxBaseMac[0..2] are OUI (organisationally unique identifier) and are not ESP32 unique. Do not use!
Expand Down

0 comments on commit fa54342

Please sign in to comment.