@@ -166,7 +166,7 @@ void LoRaMac::post_process_mcps_req()
166
166
{
167
167
_params.is_last_tx_join_request = false ;
168
168
_mcps_confirmation.status = LORAMAC_EVENT_INFO_STATUS_OK;
169
- if (_mcps_indication. type == MCPS_CONFIRMED) {
169
+ if (_mcps_confirmation. req_type == MCPS_CONFIRMED) {
170
170
// An MCPS request for a CONFIRMED message has received an ack
171
171
// in the downlink message
172
172
if (_mcps_confirmation.ack_received ) {
@@ -547,8 +547,6 @@ void LoRaMac::handle_data_frame(const uint8_t* const payload,
547
547
fctrl.value = payload[ptr_pos++];
548
548
app_payload_start_index = 8 + fctrl.bits .fopts_len ;
549
549
550
- tr_debug (" RX at port %d" , payload[app_payload_start_index]);
551
-
552
550
// perform MIC check
553
551
if (!message_integrity_check (payload, size, &ptr_pos, address,
554
552
&downlink_counter, nwk_skey)) {
@@ -1617,9 +1615,6 @@ lorawan_status_t LoRaMac::send_frame_on_channel(uint8_t channel)
1617
1615
_mcps_confirmation.tx_toa = _params.timers .tx_toa ;
1618
1616
_mlme_confirmation.tx_toa = _params.timers .tx_toa ;
1619
1617
1620
- // _lora_time.start(_params.timers.mac_state_check_timer,
1621
- // MAC_STATE_CHECK_TIMEOUT);
1622
-
1623
1618
if (!_is_nwk_joined) {
1624
1619
_params.join_request_trial_counter ++;
1625
1620
}
0 commit comments