1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 08:51:19 +01:00

Merge pull request #11529 from ParksProjets/pr_loramac

pkg/semtech_loramac: fix DEBUG message when payload is NULL
This commit is contained in:
Alexandre Abadie 2019-05-16 08:55:23 +02:00 committed by GitHub
commit d07acbe876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ typedef struct {
static uint8_t _semtech_loramac_send(semtech_loramac_t *mac,
uint8_t *payload, uint8_t len)
{
DEBUG("[semtech-loramac] send frame %s\n", (char *)payload);
DEBUG("[semtech-loramac] send frame %s\n", payload ? (char *)payload : "(empty)");
McpsReq_t mcpsReq;
LoRaMacTxInfo_t txInfo;
uint8_t dr = semtech_loramac_get_dr(mac);