Skip to content

Commit ebe3bfd

Browse files
committed
numbers to hex
1 parent 4d8f700 commit ebe3bfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LoRa.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,16 +608,16 @@ void LoRaClass::setOCP(uint8_t mA)
608608
}
609609

610610
void LoRaClass::LoRandomSeed() {
611-
writeRegister(REG_OP_MODE, 0b10001101);
612-
writeRegister(REG_MODEM_CONFIG_1, 0b01110010);
613-
writeRegister(REG_MODEM_CONFIG_2, 0b01110000);
611+
writeRegister(REG_OP_MODE, 0x72);
612+
writeRegister(REG_MODEM_CONFIG_1, 0x72);
613+
writeRegister(REG_MODEM_CONFIG_2, 0x70);
614614
}
615615

616616
byte LoRaClass::random()
617617
{
618618
uint8_t x = 0;
619619
for (uint8_t j = 0; j < 8; j++) {
620-
x += (readRegister(REG_RSSI_WIDEBAND) & 0b00000001);
620+
x += (readRegister(REG_RSSI_WIDEBAND) & 0x01);
621621
x = x << 1;
622622
delay(1);
623623
}

0 commit comments

Comments
 (0)