1
0
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:
benpicco 2022-04-13 07:03:23 +02:00 committed by GitHub
commit 4d400307bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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] = {