From fd446f516dafc0c687a87dc0974e4eb99ebe89df Mon Sep 17 00:00:00 2001 From: Kees Bakker <kees@sodaq.com> Date: Mon, 24 Dec 2018 19:31:55 +0100 Subject: [PATCH] loramac: change rxdelay1 to millisec, was seconds The RN2xx3 device has this parameter in milliseconds. So far, there is no other device driver using loramac.h Notice that RN2xx3 only has a get command for rxdelay2, not a set command. Nevertheless, that parameter was changed to milliseconds as well. --- sys/include/net/loramac.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/include/net/loramac.h b/sys/include/net/loramac.h index 8b91c12fa5..60153b0995 100644 --- a/sys/include/net/loramac.h +++ b/sys/include/net/loramac.h @@ -181,16 +181,16 @@ extern "C" { #endif /** - * @brief Default first RX window delay (in s) + * @brief Default first RX window delay (in ms) */ #ifndef LORAMAC_DEFAULT_RX1_DELAY -#define LORAMAC_DEFAULT_RX1_DELAY (1U) +#define LORAMAC_DEFAULT_RX1_DELAY (1000U) #endif /** - * @brief Default first RX window delay (in s) + * @brief Default second RX window delay (in ms) */ -#define LORAMAC_DEFAULT_RX2_DELAY (1U + LORAMAC_DEFAULT_RX1_DELAY) +#define LORAMAC_DEFAULT_RX2_DELAY (1000U + LORAMAC_DEFAULT_RX1_DELAY) /** * @brief Default automatic reply status -- GitLab