1
0
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:
mlenders 2011-07-27 02:10:47 +02:00
parent 8be561e869
commit d3ad8bce2c

View File

@ -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);