From 8407e9de092bbf010ffa6f3d1ec12d8ab5f6a1fd Mon Sep 17 00:00:00 2001 From: Christophe Painchaud Date: Thu, 9 Feb 2023 10:32:55 +0100 Subject: [PATCH] fix a pinMode() with invalid pin numbers --- RFLink/1_Radio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RFLink/1_Radio.cpp b/RFLink/1_Radio.cpp index 5158c559..acdb3341 100644 --- a/RFLink/1_Radio.cpp +++ b/RFLink/1_Radio.cpp @@ -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