Skip to content

Commit cabf6fb

Browse files
authored
Set class B flag if pingable
fix #480
1 parent 2226826 commit cabf6fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lmic/lmic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,9 @@ static bit_t buildDataFrame (void) {
18891889
LMIC.frame[OFF_DAT_HDR] = HDR_FTYPE_DAUP | HDR_MAJOR_V1;
18901890
LMIC.frame[OFF_DAT_FCT] = (LMIC.dnConf | LMIC.adrEnabled
18911891
| (sendAdrAckReq() ? FCT_ADRACKReq : 0)
1892+
#if !defined(DISABLE_PING)
1893+
| (LMIC.opmode & OP_PINGABLE) ? FCT_CLASSB : 0
1894+
#endif // ndef DISABLE_PING
18921895
| (end-OFF_DAT_OPTS));
18931896
os_wlsbf4(LMIC.frame+OFF_DAT_ADDR, LMIC.devaddr);
18941897

0 commit comments

Comments
 (0)