Skip to content

Commit

Permalink
set OtaCrcInitializer to OTA_VERSION_ID during binding (ExpressLRS#2983)
Browse files Browse the repository at this point in the history
* set OtaCrcInitializer to OTA_VERSION_ID during binding

* fix comment in rx_main.cpp

* fix comment in tx_main.cpp
  • Loading branch information
JyeSmith authored Oct 21, 2024
1 parent d68568d commit a4209f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/src/rx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1673,8 +1673,8 @@ static void EnterBindingMode()
return;
}

// Binding uses a CRCInit=0, 50Hz, and InvertIQ
OtaCrcInitializer = 0;
// Binding uses 50Hz, and InvertIQ
OtaCrcInitializer = OTA_VERSION_ID;
InBindingMode = true;
// Any method of entering bind resets a loan
// Model can be reloaned immediately by binding now
Expand Down
4 changes: 2 additions & 2 deletions src/src/tx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,8 @@ static void EnterBindingMode()
// Queue up sending the Master UID as MSP packets
SendUIDOverMSP();

// Binding uses a CRCInit=0, 50Hz, and InvertIQ
OtaCrcInitializer = 0;
// Binding uses 50Hz, and InvertIQ
OtaCrcInitializer = OTA_VERSION_ID;
OtaNonce = 0; // Lock the OtaNonce to prevent syncspam packets
InBindingMode = true; // Set binding mode before SetRFLinkRate() for correct IQ

Expand Down

0 comments on commit a4209f6

Please sign in to comment.