Skip to content

Commit

Permalink
fix a pinMode() with invalid pin numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
cpainchaud committed Feb 13, 2023
1 parent 6222f3e commit 8407e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RFLink/1_Radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ namespace RFLink { namespace Radio {
void enableRX_generic()
{
// RX pins
pinMode(pins::RX_NA, INPUT); // Initialise in/output ports
setPinMode(pins::RX_NA, INPUT); // Initialise in/output ports
setPinMode(pins::RX_DATA, INPUT); // Initialise in/output ports
setPinMode(pins::RX_NMOS, OUTPUT); // MOSFET, always output
setPinMode(pins::RX_PMOS, OUTPUT); // MOSFET, always output
Expand Down

0 comments on commit 8407e9d

Please sign in to comment.