Merge pull request #802 from alistair23/alistair/fixes

Tock: Use the default radio begin()
This commit is contained in:
Jan Gromeš 2023-07-24 17:34:49 +02:00 committed by GitHub
commit 4b9543889a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);