We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8f700 commit ebe3bfdCopy full SHA for ebe3bfd
src/LoRa.cpp
@@ -608,16 +608,16 @@ void LoRaClass::setOCP(uint8_t mA)
608
}
609
610
void LoRaClass::LoRandomSeed() {
611
- writeRegister(REG_OP_MODE, 0b10001101);
612
- writeRegister(REG_MODEM_CONFIG_1, 0b01110010);
613
- writeRegister(REG_MODEM_CONFIG_2, 0b01110000);
+ writeRegister(REG_OP_MODE, 0x72);
+ writeRegister(REG_MODEM_CONFIG_1, 0x72);
+ writeRegister(REG_MODEM_CONFIG_2, 0x70);
614
615
616
byte LoRaClass::random()
617
{
618
uint8_t x = 0;
619
for (uint8_t j = 0; j < 8; j++) {
620
- x += (readRegister(REG_RSSI_WIDEBAND) & 0b00000001);
+ x += (readRegister(REG_RSSI_WIDEBAND) & 0x01);
621
x = x << 1;
622
delay(1);
623
0 commit comments