Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SX127x sx12xx_hal TSL2561
Diff: radio/sx1276/sx1276.cpp
- Revision:
- 10:00997daeb0c0
- Parent:
- 3:aead8f8fdc1f
- Child:
- 18:9ac71c0eb70d
--- a/radio/sx1276/sx1276.cpp Mon Jun 12 19:43:20 2017 +0000 +++ b/radio/sx1276/sx1276.cpp Sat Jun 17 00:04:30 2017 +0000 @@ -994,10 +994,11 @@ } extern DigitalOut rx_debug_pin; // from board.cpp +extern bool expecting_beacon; // from LoRaMac void SX1276::SetOpMode( uint8_t opMode ) { - if (opMode == RF_OPMODE_RECEIVER || opMode == RFLR_OPMODE_RECEIVER_SINGLE) + if (opMode == RF_OPMODE_RECEIVER || opMode == RFLR_OPMODE_RECEIVER_SINGLE && expecting_beacon) rx_debug_pin = 1; else rx_debug_pin = 0;