diff --git a/examples/lorawan/main.c b/examples/lorawan/main.c index f323e5212..20cc066f3 100644 --- a/examples/lorawan/main.c +++ b/examples/lorawan/main.c @@ -70,7 +70,7 @@ static void _send_message(void) /* Try to send the message */ uint8_t ret = semtech_loramac_send(&loramac, (uint8_t *)message, strlen(message)); - if (ret != SEMTECH_LORAMAC_TX_OK) { + if (ret != SEMTECH_LORAMAC_TX_DONE) { printf("Cannot send message '%s', ret code: %d\n", message, ret); return; } diff --git a/pkg/semtech-loramac/doc.txt b/pkg/semtech-loramac/doc.txt index aaf620096..fd6f80be0 100644 --- a/pkg/semtech-loramac/doc.txt +++ b/pkg/semtech-loramac/doc.txt @@ -88,7 +88,7 @@ * /* 4. send some data */ * char *message = "This is RIOT"; * if (semtech_loramac_send(&loramac, - * (uint8_t *)message, strlen(message)) != SEMTECH_LORAMAC_TX_OK) { + * (uint8_t *)message, strlen(message)) != SEMTECH_LORAMAC_TX_DONE) { printf("Cannot send message '%s'\n", message); * return 1; * } diff --git a/pkg/semtech-loramac/include/semtech_loramac.h b/pkg/semtech-loramac/include/semtech_loramac.h index d32d0dbcd..40d62f6c3 100644 --- a/pkg/semtech-loramac/include/semtech_loramac.h +++ b/pkg/semtech-loramac/include/semtech_loramac.h @@ -159,7 +159,7 @@ uint8_t semtech_loramac_join(semtech_loramac_t *mac, uint8_t type); * This function returns after TX status is replied from the MAC. To receive * potential messages sent from the network an explicit call to * @ref semtech_loramac_recv must be done after this function if it returned - * @ref SEMTECH_LORAMAC_TX_OK and within the RX windows delays. + * @ref SEMTECH_LORAMAC_TX_DONE and within the RX windows delays. * * @see semtech_loramac_recv * @@ -167,7 +167,7 @@ uint8_t semtech_loramac_join(semtech_loramac_t *mac, uint8_t type); * @param[in] data The TX data * @param[in] len The length of the TX data * - * @return SEMTECH_LORAMAC_TX_OK when the message can be transmitted + * @return SEMTECH_LORAMAC_TX_DONE when the message was transmitted * @return SEMTECH_LORAMAC_NOT_JOINED when the network is not joined * @return SEMTECH_LORAMAC_BUSY when the mac is already active (join or tx in progress) * @return SEMTECH_LORAMAC_DUTYCYCLE_RESTRICTED when the send is rejected because of dutycycle restriction