diff --git a/src/lmic/lmic.h b/src/lmic/lmic.h index caa7b379..c9f31ba5 100644 --- a/src/lmic/lmic.h +++ b/src/lmic/lmic.h @@ -105,7 +105,7 @@ extern "C"{ #define ARDUINO_LMIC_VERSION_CALC(major, minor, patch, local) \ (((major) << 24ul) | ((minor) << 16ul) | ((patch) << 8ul) | ((local) << 0ul)) -#define ARDUINO_LMIC_VERSION ARDUINO_LMIC_VERSION_CALC(3, 0, 99, 3) /* v3.0.99.3 */ +#define ARDUINO_LMIC_VERSION ARDUINO_LMIC_VERSION_CALC(3, 0, 99, 4) /* v3.0.99.4 */ #define ARDUINO_LMIC_VERSION_GET_MAJOR(v) \ (((v) >> 24u) & 0xFFu) diff --git a/src/lmic/lmic_as923.c b/src/lmic/lmic_as923.c index d66c10a7..f46f50b0 100644 --- a/src/lmic/lmic_as923.c +++ b/src/lmic/lmic_as923.c @@ -85,7 +85,7 @@ LMICas923_getUplinkDwellBit(uint8_t mcmd_txparam) { static uint8_t LMICas923_getDownlinkDwellBit(uint8_t mcmd_txparam) { if (mcmd_txparam == 0xFF) - return 0; + return AS923_INITIAL_TxParam_DownlinkDwellTime; return (mcmd_txparam & MCMD_TxParam_RxDWELL_MASK) != 0; } diff --git a/src/lmic/lorabase_as923.h b/src/lmic/lorabase_as923.h index 74909650..d65bb75d 100644 --- a/src/lmic/lorabase_as923.h +++ b/src/lmic/lorabase_as923.h @@ -97,6 +97,8 @@ enum { AS923_V102_TX_CAP = 100 }; // v1.0.2 allows 100% enum { // initial value of UplinkDwellTime before TxParamSetupReq received. AS923_INITIAL_TxParam_UplinkDwellTime = 1, + // initial value of DownlinkDwellTime before TxParamSetupReq received. + AS923_INITIAL_TxParam_DownlinkDwellTime = 1, AS923_UPLINK_DWELL_TIME_osticks = sec2osticks(20), };