Skip to content

Commit

Permalink
cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 4, 2016
1 parent 050b5c1 commit c738ae5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Firmware/radio/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,7 @@ uint8_t mavlink_frame(uint8_t max_xmit, __xdata uint8_t * __pdata buf)
{
__data uint16_t slen;

//
// There is already a packet sitting waiting here
//
// but this optimization is redundant with the loop below. By letting the very slightly
// more expensive version its thing we can ensure we skip _all_ redundant rc_override msgs
#if 0
serial_read_buf(last_sent, mav_pkt_len);
last_sent_len = mav_pkt_len;
memcpy(buf, last_sent, last_sent_len);
check_heartbeat(buf);
#else
last_sent_len = 0;
#endif
mav_pkt_len = 0;

slen = serial_read_available();
Expand Down

0 comments on commit c738ae5

Please sign in to comment.