|
|
@ -101,7 +101,7 @@ class HmRadio { |
|
|
|
// change the byte order of the DTU serial number and append the required 0x01 at the end
|
|
|
|
DTU_RADIO_ID = ((uint64_t)(((dtuSn >> 24) & 0xFF) | ((dtuSn >> 8) & 0xFF00) | ((dtuSn << 8) & 0xFF0000) | ((dtuSn << 24) & 0xFF000000)) << 8) | 0x01; |
|
|
|
|
|
|
|
SPIClass* mSpi = new SPIClass(HSPI); |
|
|
|
SPIClass* mSpi = new SPIClass(); |
|
|
|
mSpi->begin(sclk, miso, mosi, cs); |
|
|
|
mNrf24.begin(mSpi, ce, cs); |
|
|
|
mNrf24.setRetries(3, 15); // 3*250us + 250us and 15 loops -> 15ms
|
|
|
|