Skip to content

Commit

Permalink
Bugfix previous
Browse files Browse the repository at this point in the history
  • Loading branch information
gotthardp committed Feb 3, 2018
1 parent 30940c4 commit 3f906e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lorawan_mac_commands.erl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ calculate_adr(#network{region=Region, max_datr=NwkMaxDR1, max_power=MaxPower,
NwkMaxDR2 =
lists:foldl(
fun
({_,_,Max}, Acc) -> max(Max, Acc);
({_,_,Max}, Acc) when is_integer(Max) -> max(Max, Acc);
(_, Acc) -> Acc
end,
NwkMaxDR1, CFList),
Expand Down

0 comments on commit 3f906e3

Please sign in to comment.