Skip to content

Commit 73e433e

Browse files
author
Hasnain Virk
committed
Immutable payload pointer to LoRaMacCommand class
1 parent 0be41f0 commit 73e433e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/lorawan/lorastack/mac/LoRaMacCommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool LoRaMacCommand::has_sticky_mac_cmd() const
150150
return sticky_mac_cmd;
151151
}
152152

153-
lorawan_status_t LoRaMacCommand::process_mac_commands(uint8_t *payload, uint8_t mac_index,
153+
lorawan_status_t LoRaMacCommand::process_mac_commands(const uint8_t *payload, uint8_t mac_index,
154154
uint8_t commands_size, uint8_t snr,
155155
loramac_mlme_confirm_t& mlme_conf,
156156
lora_mac_system_params_t &mac_sys_params,

features/lorawan/lorastack/mac/LoRaMacCommand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class LoRaMacCommand {
126126
*
127127
* @return status Function status. LORAWAN_STATUS_OK if command successful.
128128
*/
129-
lorawan_status_t process_mac_commands(uint8_t *payload, uint8_t mac_index,
129+
lorawan_status_t process_mac_commands(const uint8_t *payload, uint8_t mac_index,
130130
uint8_t commands_size, uint8_t snr,
131131
loramac_mlme_confirm_t& mlme_conf,
132132
lora_mac_system_params_t& mac_params,

0 commit comments

Comments
 (0)