CC2420: Removed unused variables

This commit is contained in:
kkrentz 2013-06-05 08:02:07 -07:00
parent 1cb60b27de
commit e3eb924f13

View file

@ -120,8 +120,6 @@ rtimer_clock_t cc2420_time_of_arrival, cc2420_time_of_departure;
int cc2420_authority_level_of_sender; int cc2420_authority_level_of_sender;
int cc2420_packets_seen, cc2420_packets_read;
volatile uint8_t cc2420_sfd_counter; volatile uint8_t cc2420_sfd_counter;
volatile uint16_t cc2420_sfd_start_time; volatile uint16_t cc2420_sfd_start_time;
volatile uint16_t cc2420_sfd_end_time; volatile uint16_t cc2420_sfd_end_time;
@ -734,7 +732,6 @@ cc2420_interrupt(void)
process_poll(&cc2420_process); process_poll(&cc2420_process);
last_packet_timestamp = cc2420_sfd_start_time; last_packet_timestamp = cc2420_sfd_start_time;
cc2420_packets_seen++;
return 1; return 1;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
@ -774,8 +771,6 @@ cc2420_read(void *buf, unsigned short bufsize)
GET_LOCK(); GET_LOCK();
cc2420_packets_read++;
getrxbyte(&len); getrxbyte(&len);
if(len > CC2420_MAX_PACKET_LEN) { if(len > CC2420_MAX_PACKET_LEN) {