From a22a4df88f4146b6218caeaf6e5089cfc4d193c2 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 24 Apr 2023 18:25:09 +0200 Subject: [PATCH] [MOD] Added debug message when BUSY pin times out --- src/Module.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Module.cpp b/src/Module.cpp index 17e09480..b29eb6b8 100644 --- a/src/Module.cpp +++ b/src/Module.cpp @@ -251,6 +251,7 @@ int16_t Module::SPItransferStream(uint8_t* cmd, uint8_t cmdLen, bool write, uint this->hal->yield(); if(this->hal->millis() - start >= timeout) { this->hal->digitalWrite(this->csPin, this->hal->GpioLevelLow); + RADIOLIB_DEBUG_PRINTLN("Timed out waiting for GPIO pin, is it connected?"); return(RADIOLIB_ERR_SPI_CMD_TIMEOUT); } }