mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
pkg/semtech-loramac: better handle radio init errors
This commit is contained in:
parent
1d1a167158
commit
7f33127d92
@ -44,7 +44,11 @@ extern sx127x_t sx127x;
|
||||
void SX127XInit(RadioEvents_t *events)
|
||||
{
|
||||
(void) events;
|
||||
sx127x_init(&sx127x);
|
||||
if (sx127x_init(&sx127x) < 0) {
|
||||
DEBUG("[semtech-loramac] radio: failed to initialize radio\n");
|
||||
}
|
||||
|
||||
DEBUG("[semtech-loramac] radio: initialization successful\n");
|
||||
}
|
||||
|
||||
RadioState_t SX127XGetStatus(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user