Tock: Use the default radio begin()
Signed-off-by: Alistair Francis <alistair@alistair23.me>
This commit is contained in:
parent
12387daba0
commit
87200bd312
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ int main(void) {
|
|||
|
||||
// Setup the radio
|
||||
// The settings here work for the SparkFun LoRa Thing Plus - expLoRaBLE
|
||||
int state = radio->begin(915.0, 125.0, 7, 5, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, 0, 8, 0, false);
|
||||
radio->XTAL = true;
|
||||
int state = radio->begin(915.0);
|
||||
|
||||
if (state != RADIOLIB_ERR_NONE) {
|
||||
printf("failed, code %d\r\n", state);
|
||||
|
|
Loading…
Add table
Reference in a new issue