Update example

This commit is contained in:
lewisxhe
2025-02-06 14:30:47 +08:00
parent 1faddb5d24
commit 057ad4480a
3 changed files with 24 additions and 3 deletions
+3 -1
View File
@@ -317,7 +317,7 @@ bool setupRadio()
SPI.end();
SPI.begin(BOARD_SPI_SCK, BOARD_SPI_MISO, BOARD_SPI_MOSI); //SD
int state = radio.begin(RADIO_FREQ);
int state = radio.begin();
if (state == RADIOLIB_ERR_NONE) {
Serial.println("Start Radio success!");
} else {
@@ -328,6 +328,8 @@ bool setupRadio()
return false;
}
Serial.printf("Freq:%.2f TxPower:%d Bandwidth:%.2f\n", RADIO_FREQ, RADIO_TX_POWER, RADIO_BANDWIDTH);
hasRadio = true;
// set carrier frequency to 868.0 MHz