Skip to content

Commit 601a466

Browse files
authored
Remove unused code
1 parent 6807474 commit 601a466

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/lorawan_mac_region.erl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ f2ch(Freq, {Start1, Inc1}, _) when round(10*Freq-Start1) rem Inc1 == 0 ->
5757
f2ch(Freq, _, {Start2, Inc2}) when round(10*Freq-Start2) rem Inc2 == 0 ->
5858
64 + round(10*Freq-Start2) div Inc2.
5959

60-
ch2f(<<"EU868">>, Ch) ->
61-
if
62-
Ch >= 0, Ch =< 2 ->
63-
ch2fi(Ch, {8681, 2});
64-
Ch >= 3, Ch =< 7 ->
65-
ch2fi(Ch, {8671, 2});
66-
Ch == 8 ->
67-
868.8
68-
end;
69-
ch2f(<<"CN779">>, Ch) ->
70-
ch2fi(Ch, {7795, 2});
71-
ch2f(<<"EU433">>, Ch) ->
72-
ch2fi(Ch, {4331.75, 2});
7360
ch2f(Region, Ch)
7461
when Region == <<"US902">>; Region == <<"US902-PR">>; Region == <<"AU915">> ->
7562
ch2fi(Ch, {9233, 6});

0 commit comments

Comments
 (0)