File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
features/lorawan/lorastack/mac Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,7 @@ void LoRaMac::handle_data_frame(const uint8_t *const payload,
580
580
fport = payload[FHDR_LEN_WITHOUT_FOPTS + fctrl.bits .fopts_len ];
581
581
}
582
582
583
+ // TODO: Move this handling to LoRaMACCrypto class!
583
584
if (address != _params.dev_addr ) {
584
585
// check if Multicast is destined for us
585
586
cur_multicast_params = get_multicast_params (address);
@@ -604,7 +605,7 @@ void LoRaMac::handle_data_frame(const uint8_t *const payload,
604
605
}
605
606
if (!is_multicast) {
606
607
if (_dl_fport_available && fport != 0 ) {
607
- downlink_counter = _params.app_dl_frame_counter ;
608
+ downlink_counter = _params.app_dl_frame_counter ++ ;
608
609
cnt_type = AFCNT_DOWN;
609
610
} else {
610
611
cnt_type = NFCNT_DOWN;
You can’t perform that action at this time.
0 commit comments