diff --git a/main/ZcommonRF.ino b/main/ZcommonRF.ino index d0d29c675d..f5eca348a4 100644 --- a/main/ZcommonRF.ino +++ b/main/ZcommonRF.ino @@ -36,6 +36,10 @@ void initCC1101() { int delayMS = 16; int delayMaxMS = 500; for (int i = 0; i < 10; i++) { +# if defined(RF_MODULE_SCK) && defined(RF_MODULE_MISO) && \ + defined(RF_MODULE_MOSI) && defined(RF_MODULE_CS) + ELECHOUSE_cc1101.setSpiPin(RF_MODULE_SCK, RF_MODULE_MISO, RF_MODULE_MOSI, RF_MODULE_CS); +# endif if (ELECHOUSE_cc1101.getCC1101()) { Log.notice(F("C1101 spi Connection OK" CR)); ELECHOUSE_cc1101.Init();