Skip to content

Commit

Permalink
force EnableSPIMode() on boot (#65)
Browse files Browse the repository at this point in the history
* force EnableSPIMode() on boot

* adds comment to PRs

Co-authored-by: Jye <JyeSmith@users.noreply.github.com>
  • Loading branch information
JyeSmith and JyeSmith committed Mar 21, 2022
1 parent e151ebe commit d8efaf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rapidfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
void
Rapidfire::Init()
{
delay(VRX_BOOT_DELAY);

EnableSPIMode(); // https://github.com/ExpressLRS/ExpressLRS/pull/1489 & https://github.com/ExpressLRS/Backpack/pull/65

pinMode(PIN_MOSI, INPUT);
pinMode(PIN_CLK, INPUT);
pinMode(PIN_CS, INPUT);

delay(VRX_BOOT_DELAY);

DBGLN("Rapid Fire init");
}

Expand Down

0 comments on commit d8efaf3

Please sign in to comment.