mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
fixed writepacket
This commit is contained in:
parent
8be561e869
commit
d3ad8bce2c
@ -161,7 +161,7 @@ int writepacket(uint8_t *packet_buf, size_t size) {
|
||||
if ((byte_ptr - packet_buf) > BORDER_BUFFER_SIZE) {
|
||||
return -1;
|
||||
}
|
||||
printf("%02x ",*byte_ptr);
|
||||
|
||||
switch (*byte_ptr) {
|
||||
case(DC3):{
|
||||
*byte_ptr = DC3_ESC;
|
||||
@ -186,7 +186,6 @@ int writepacket(uint8_t *packet_buf, size_t size) {
|
||||
byte_ptr++;
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
uart0_putc(END);
|
||||
|
||||
return (byte_ptr - packet_buf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user