Skip to content

Commit

Permalink
Update rfmodelastcycled at the end of setup()
Browse files Browse the repository at this point in the history
  • Loading branch information
JyeSmith committed May 11, 2024
1 parent 756f5bf commit c33b734
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/src/rx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,10 @@ void setup()
#endif

devicesStart();

// setup() eats up some of this time, which can cause the first mode connection to fail.
// Resetting the time here give the first mode a better chance of connection.
RFmodeLastCycled = millis();
}

void loop()
Expand Down

0 comments on commit c33b734

Please sign in to comment.