Revision 1737
wireless: added more basic_buf debug info
branches/wireless/code/projects/libwireless/xbee.c | ||
---|---|---|
625 | 625 |
int8_t check_last_receive(uint16_t source,uint8_t framenum) { |
626 | 626 |
uint8_t i=0; |
627 | 627 |
for(;i<NUM_LAST_PACKETS;i++) { |
628 |
if (lastPacket[i].source == source && lastPacket[i].framenum == framenum) |
|
628 |
if (lastPacket[i].source == source && lastPacket[i].framenum == framenum) { |
|
629 |
WL_DEBUG_PRINT_P("Duplicate Packet: LP.src="); |
|
630 |
WL_DEBUG_PRINT_INT(lastPacket[i].source); |
|
631 |
WL_DEBUG_PRINT_P("|GET.src="); |
|
632 |
WL_DEBUG_PRINT_INT(source); |
|
633 |
WL_DEBUG_PRINT_P("|LP.framenum="); |
|
634 |
WL_DEBUG_PRINT_INT(lastPacket[i].framenum); |
|
635 |
WL_DEBUG_PRINT_P("|GET.framenum="); |
|
636 |
WL_DEBUG_PRINT_INT(framenum); |
|
637 |
WL_DEBUG_PRINT_P("\r\n"); |
|
629 | 638 |
return -1; // duplicate packet, so return error |
639 |
} |
|
630 | 640 |
} |
631 | 641 |
// save packet source and framenum |
632 | 642 |
i=getStatus(LAST_PACKET_MASK); |
Also available in: Unified diff