Skip to content

Commit

Permalink
Modified lora.c: static void MlmeConfirm(MlmeConfirm_t *mlmeConfirm)
Browse files Browse the repository at this point in the history
This modification allows the data rate of the device that was set before AT+JOIN to remain even after joining the network. Previously, the data rate of the device will be restored to the default data rate for the first AT+SEND attempt after joining.

Co-Authored-By: kygoh <gohkengyew@gmail.com>
  • Loading branch information
tohlh and kygoh committed Apr 10, 2021
1 parent 567e122 commit 7b90af0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ static void MlmeConfirm(MlmeConfirm_t *mlmeConfirm)
{
// Status is OK, node has joined the network
LoRaMainCallbacks->LORA_HasJoined();
lora_config_tx_datarate_set(lora_config.TxDatarate);
#ifdef LORAMAC_CLASSB_ENABLED
#if defined( USE_DEVICE_TIMING )
LORA_DeviceTimeReq();
Expand Down

0 comments on commit 7b90af0

Please sign in to comment.