/trunk/uart1.c |
---|
428,7 → 428,10 |
} |
else if (pWaypoint->Position.Status == NEWDATA) |
{ // app current WP to the list |
if (pWaypoint->Index == oldIndex + 1) |
sprintf(text, "\r\nAdd WP: Index= %d, oldIndex = %d\r\n", pWaypoint->Index, oldIndex); |
UART1_PutString(text); |
if (pWaypoint->Index == oldIndex + 1) |
{ |
WPList_Append(pWaypoint); |
BeepTime = 500; |
436,8 → 439,7 |
UART1_Request_NewWaypoint = TRUE; |
} |
sprintf(text, "\r\nAdd WP: Index= %d, oldIndex = %d\r\n", pWaypoint->Index, oldIndex); |
UART1_PutString(text); |
} |
} |
break; |