Merge pull request #801 from alistair23/alistair/fixes

Tock: A few more cleanups and fixes
This commit is contained in:
Jan Gromeš 2023-07-22 19:14:24 +02:00 committed by GitHub
commit 12387daba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,10 @@ set -e
rm -rf ./build
cd libtock-c/libtock
make -j4
cd ../../
mkdir -p build
cd build

View file

@ -48,7 +48,7 @@ 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, 9, 7, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, 10, 8, 0, false);
int state = radio->begin(915.0, 125.0, 7, 5, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, 0, 8, 0, false);
if (state != RADIOLIB_ERR_NONE) {
printf("failed, code %d\r\n", state);