Skip to content

Commit 82cc886

Browse files
committed
Some more bugfixes
1 parent 786ee5a commit 82cc886

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lorawan_admin_logger.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ info(StreamId, Response, #state{next=Next0, path=Path}=State) ->
3030
{Command, Next} = cowboy_stream:info(StreamId, Response, Next0),
3131
{Command, State#state{next=Next}}.
3232

33-
log_error(Status, _Path) when Status div 100 == 2; Status == 304 ->
33+
log_error(Status, _Path) when Status div 100 == 2; Status == 304; Status == 401 ->
3434
ok;
3535
log_error(Status, Path) ->
3636
lager:error("HTTP ~B ~s", [Status, Path]).

src/lorawan_mac_commands.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ send_link_check(#rxq{datr=DataRate, lsnr=SNR}) ->
158158
{link_check_ans, Margin, 1}.
159159

160160

161-
auto_adr(RxQ, #link{adr_flag_set=1}=Link, RxFrame) ->
161+
auto_adr(RxQ, #link{adr_flag_use=1, adr_flag_set=1}=Link, RxFrame) ->
162162
% ADR is ON, so maintain quality statistics
163163
LastQs = appendq({RxQ#rxq.rssi, RxQ#rxq.lsnr}, Link#link.last_qs),
164164
auto_adr0(Link#link{last_qs=LastQs}, RxFrame);

0 commit comments

Comments
 (0)