mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Immutable payload pointer in LoRaPHY
							parent
							
								
									73e433e4e5
								
							
						
					
					
						commit
						a331c4b59a
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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.
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue