net/lora: Fix MAC command issues

There are two basic issues fixed with this commit: 1) If the
server sends MAC commands "constantly" the code would not
send any data until the MAC commands stopped being sent. Now, if
we cannot send any MAC commands because the application data is
too large, we will send a MAC commands, at most, every other
frame. 2) The code will now attempt to add as many MAC commands
as it can to each transmission. Prior code would either attempt
to add the entire MAC command buffer or do nothing.

X-Original-Commit: 6f78d462d7b05346dcc2ddb4b94d0b8de31611e7
This commit is contained in:
William San Filippo
2017-11-02 14:04:52 -07:00
parent 2a98b2cdb1
commit 05e481b4f2

Diff Content Not Available