Browse Source

remove explicit HSPI call as it breaks 8266 builds

pull/807/head
Markus Krause 2 years ago
parent
commit
e3aa64b5cb
  1. 2
      src/hm/hmRadio.h

2
src/hm/hmRadio.h

@ -101,7 +101,7 @@ class HmRadio {
// change the byte order of the DTU serial number and append the required 0x01 at the end // 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; 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); mSpi->begin(sclk, miso, mosi, cs);
mNrf24.begin(mSpi, ce, cs); mNrf24.begin(mSpi, ce, cs);
mNrf24.setRetries(3, 15); // 3*250us + 250us and 15 loops -> 15ms mNrf24.setRetries(3, 15); // 3*250us + 250us and 15 loops -> 15ms

Loading…
Cancel
Save