Immutable payload pointer in LoRaPHY

pull/6808/head
Hasnain Virk 2018-05-03 18:23:58 +03:00
parent 73e433e4e5
commit a331c4b59a
3 changed files with 3 additions and 3 deletions

View File

@ -307,7 +307,7 @@ lorawan_time_t LoRaPHY::update_band_timeoff(bool joined, bool duty_cycle,
return next_tx_delay;
}
uint8_t LoRaPHY::parse_link_ADR_req(uint8_t* payload, link_adr_params_t* params)
uint8_t LoRaPHY::parse_link_ADR_req(const uint8_t* payload, link_adr_params_t* params)
{
uint8_t ret_index = 0;

View File

@ -578,7 +578,7 @@ protected:
/**
* Parses the parameter of an LinkAdrRequest.
*/
uint8_t parse_link_ADR_req(uint8_t* payload, link_adr_params_t* adr_params);
uint8_t parse_link_ADR_req(const uint8_t* payload, link_adr_params_t* adr_params);
/**
* Verifies and updates the datarate, the TX power and the number of repetitions

View File

@ -564,7 +564,7 @@ typedef struct
/*!
* A pointer to the payload containing the MAC commands.
*/
uint8_t* payload;
const uint8_t* payload;
/*!
* The size of the payload.
*/