From 3205bd1c728f8f1d49d9c7dcf05a8cec0824fdb8 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 15 Feb 2021 20:48:22 +0100 Subject: [PATCH] [nRF24] Fixed missing pinMode for IRQ (#252) --- src/modules/nRF24/nRF24.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/nRF24/nRF24.cpp b/src/modules/nRF24/nRF24.cpp index a251ca17..64f47806 100644 --- a/src/modules/nRF24/nRF24.cpp +++ b/src/modules/nRF24/nRF24.cpp @@ -10,6 +10,7 @@ int16_t nRF24::begin(int16_t freq, int16_t dataRate, int8_t power, uint8_t addrW _mod->SPIreadCommand = NRF24_CMD_READ; _mod->SPIwriteCommand = NRF24_CMD_WRITE; _mod->init(RADIOLIB_USE_SPI); + Module::pinMode(_mod->getIrq(), INPUT); // set pin mode on RST (connected to nRF24 CE pin) Module::pinMode(_mod->getRst(), OUTPUT);