1
0
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:
Alexandre Abadie 2018-04-12 12:49:46 +02:00
parent 1d1a167158
commit 7f33127d92

View File

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