Skip to content

Commit

Permalink
Issue #504: fix return code
Browse files Browse the repository at this point in the history
  • Loading branch information
gotthardp committed Oct 12, 2018
1 parent cf339f9 commit 5077442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lorawan_application_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ try_class_c(Handler, #node{devaddr=DevAddr, profile=ProfID, last_rx=LastRx}=Node
SecSinceLast < Delay ->
lager:debug("~s delaying Class C downlink", [lorawan_utils:binary_to_hex(DevAddr)]),
% the node recently sent a Class A uplink
timer:apply_after(Delay*1000, ?MODULE, send_class_c, [{Network, Profile, Node}, Handler, Time, TxData]);
{ok, _} = timer:apply_after(Delay*1000, ?MODULE, send_class_c, [{Network, Profile, Node}, Handler, Time, TxData]),
ok;
true ->
send_class_c({Network, Profile, Node}, Handler, Time, TxData)
end.
Expand Down

0 comments on commit 5077442

Please sign in to comment.