Skip to content

Commit

Permalink
Set class B flag if pingable
Browse files Browse the repository at this point in the history
fix #480
  • Loading branch information
sualko committed Oct 22, 2019
1 parent 2226826 commit 9ed48ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lmic/lmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,9 @@ static bit_t buildDataFrame (void) {
LMIC.frame[OFF_DAT_HDR] = HDR_FTYPE_DAUP | HDR_MAJOR_V1;
LMIC.frame[OFF_DAT_FCT] = (LMIC.dnConf | LMIC.adrEnabled
| (sendAdrAckReq() ? FCT_ADRACKReq : 0)
#if !defined(DISABLE_PING)
| ((LMIC.opmode & OP_PINGABLE) ? FCT_CLASSB : 0)
#endif // ndef DISABLE_PING
| (end-OFF_DAT_OPTS));
os_wlsbf4(LMIC.frame+OFF_DAT_ADDR, LMIC.devaddr);

Expand Down

0 comments on commit 9ed48ca

Please sign in to comment.