Skip to content

Commit

Permalink
removed swap_bytes
Browse files Browse the repository at this point in the history
thanks to Michael for noticing
  • Loading branch information
tridge committed May 25, 2016
1 parent 3e4f55d commit d8a217b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Firmware/radio/mavlink.c
Expand Up @@ -110,16 +110,6 @@ struct mavlink_RADIO_v10 {
uint8_t remnoise;
};

static void swap_bytes(__pdata uint8_t ofs, __pdata uint8_t len)
{
register uint8_t i;
for (i=ofs; i<ofs+len; i+=2) {
register uint8_t tmp = pbuf[i];
pbuf[i] = pbuf[i+1];
pbuf[i+1] = tmp;
}
}

/// send a MAVLink status report packet
/// we always send as MAVLink1 and let the recipient sort it out.
void MAVLink_report(void)
Expand Down

0 comments on commit d8a217b

Please sign in to comment.