mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17920 from dp1/fix-loramac-argument-type
Fix argument type of lora_time_on_air to avoid errors in C++
This commit is contained in:
commit
4d400307bf
@ -987,7 +987,7 @@ typedef enum {
|
||||
* @param[in] cr Coding rate used to send the packet
|
||||
* @return time on air in us
|
||||
*/
|
||||
static inline uint32_t lora_time_on_air(size_t pkt_len, uint8_t dr, uint8_t cr)
|
||||
static inline uint32_t lora_time_on_air(size_t pkt_len, loramac_dr_idx_t dr, uint8_t cr)
|
||||
{
|
||||
assert(dr <= LORAMAC_DR_6);
|
||||
const uint8_t _K[6][4] = {
|
||||
|
Loading…
Reference in New Issue
Block a user