Skip to content

Commit

Permalink
SQUASH ME xbee: fixed comment style for "fixed RSSI header parsing"
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonezawa-T2 committed Apr 4, 2016
1 parent 3edcc08 commit 5ee95b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/xbee/xbee.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ static void _isr_event(gnrc_netdev_t *netdev, uint32_t event_type)
hdr->src_l2addr_len = (uint8_t)addr_len;
hdr->dst_l2addr_len = (uint8_t)addr_len;
hdr->if_pid = dev->mac_pid;
hdr->rssi = dev->rx_buf[1 + addr_len]; // API ID + source address
hdr->rssi = dev->rx_buf[1 + addr_len]; /* API ID + source address */
hdr->lqi = 0;
gnrc_netif_hdr_set_src_addr(hdr, &(dev->rx_buf[1]), addr_len);
if (addr_len == 2) {
Expand All @@ -821,7 +821,7 @@ static void _isr_event(gnrc_netdev_t *netdev, uint32_t event_type)
}

DEBUG(", RSSI: -%d dBm", hdr->rssi);
DEBUG(", options: %02x", (uint8_t) dev->rx_buf[1 + addr_len + 1]); // API ID + source address + RSSI
DEBUG(", options: %02x", (uint8_t) dev->rx_buf[1 + addr_len + 1]); /* API ID + source address + RSSI */
DEBUG(", payload:");

for (size_t i = 0; i < pkt->size; i++) {
Expand Down

0 comments on commit 5ee95b3

Please sign in to comment.