Revision 1646
wireless: wireless2.c
wireless_send.c | ||
---|---|---|
122 | 122 |
group = 0xFF-group; |
123 | 123 |
|
124 | 124 |
// send the packet |
125 |
if (xbee_send_header(XBEE_FRAME_TX_REQUEST_16,length+7) != WL_SUCCESS) {
|
|
125 |
if (xbee_send_header(length+7) != WL_SUCCESS) { |
|
126 | 126 |
WL_DEBUG_PRINT("1Error sending packet from core send function\r\n"); |
127 | 127 |
return WL_ERROR_SEND; |
128 | 128 |
} |
... | ... | |
382 | 382 |
// retry sending |
383 | 383 |
send_buf[num]++; // increment retries |
384 | 384 |
val = (val==0)?PACKET_BUFFER_SIZE-1:val-1; // go back one byte |
385 |
if (xbee_send_header(XBEE_FRAME_TX_REQUEST_16,len+1) != WL_SUCCESS) {
|
|
385 |
if (xbee_send_header(len+1) != WL_SUCCESS) { |
|
386 | 386 |
WL_DEBUG_PRINT("Error sending packet from ackhandle function\r\n"); |
387 | 387 |
return; |
388 | 388 |
} |
... | ... | |
444 | 444 |
// retry sending |
445 | 445 |
send_buf[num]++; // increment retries |
446 | 446 |
val = (val==0)?PACKET_BUFFER_SIZE-1:val-1; // go back one byte |
447 |
if (xbee_send_header(XBEE_FRAME_TX_REQUEST_16,len+1) != WL_SUCCESS) {
|
|
447 |
if (xbee_send_header(len+1) != WL_SUCCESS) { |
|
448 | 448 |
WL_DEBUG_PRINT("Error sending packet from ackhandle function\r\n"); |
449 | 449 |
return; |
450 | 450 |
} |
Also available in: Unified diff