Skip to content

Commit 7bf3994

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
Fixed Code style warning.
1 parent 2e1f32f commit 7bf3994

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ static int8_t mac_data_interface_tx_done_cb(protocol_interface_rf_mac_setup_s *r
315315

316316
if (status == PHY_LINK_CCA_PREPARE) {
317317
if (rf_ptr->fhss_api) {
318-
uint8_t *synch_info = NULL;
319318
mac_pre_build_frame_t *active_buf = rf_ptr->active_pd_data_request;
320319
if (!active_buf) {
321320
return -1;
@@ -324,7 +323,7 @@ static int8_t mac_data_interface_tx_done_cb(protocol_interface_rf_mac_setup_s *r
324323
if (active_buf->fcf_dsn.frametype == FC_BEACON_FRAME) {
325324
// FHSS synchronization info is written in the end of transmitted (Beacon) buffer
326325
dev_driver_tx_buffer_s *tx_buf = &rf_ptr->dev_driver_tx_buffer;
327-
synch_info = tx_buf->buf + rf_ptr->dev_driver->phy_driver->phy_header_length + tx_buf->len - FHSS_SYNCH_INFO_LENGTH;
326+
uint8_t *synch_info = tx_buf->buf + rf_ptr->dev_driver->phy_driver->phy_header_length + tx_buf->len - FHSS_SYNCH_INFO_LENGTH;
328327
rf_ptr->fhss_api->write_synch_info(rf_ptr->fhss_api, synch_info, 0, FHSS_SYNCH_FRAME, 0);
329328
}
330329
// Change to destination channel and write synchronization info to Beacon frames here

0 commit comments

Comments
 (0)