Rev 162 | Rev 165 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 162 | Rev 163 | ||
---|---|---|---|
Line 426... | Line 426... | ||
426 | //UART1_PutString("\r\nClear WP List\r\n"); |
426 | //UART1_PutString("\r\nClear WP List\r\n"); |
427 | UART1_Request_NewWaypoint = TRUE; |
427 | UART1_Request_NewWaypoint = TRUE; |
428 | } |
428 | } |
429 | else if (pWaypoint->Position.Status == NEWDATA) |
429 | else if (pWaypoint->Position.Status == NEWDATA) |
430 | { // app current WP to the list |
430 | { // app current WP to the list |
- | 431 | sprintf(text, "\r\nAdd WP: Index= %d, oldIndex = %d\r\n", pWaypoint->Index, oldIndex); |
|
- | 432 | UART1_PutString(text); |
|
- | 433 | ||
431 | if (pWaypoint->Index == oldIndex + 1) |
434 | if (pWaypoint->Index == oldIndex + 1) |
432 | { |
435 | { |
433 | WPList_Append(pWaypoint); |
436 | WPList_Append(pWaypoint); |
434 | BeepTime = 500; |
437 | BeepTime = 500; |
435 | oldIndex = pWaypoint->Index; |
438 | oldIndex = pWaypoint->Index; |
436 | UART1_Request_NewWaypoint = TRUE; |
439 | UART1_Request_NewWaypoint = TRUE; |
437 | } |
440 | } |
Line 438... | Line -... | ||
438 | - | ||
439 | sprintf(text, "\r\nAdd WP: Index= %d, oldIndex = %d\r\n", pWaypoint->Index, oldIndex); |
- | |
- | 441 | ||
440 | UART1_PutString(text); |
442 | |
441 | } |
443 | } |
442 | } |
444 | } |
Line 443... | Line 445... | ||
443 | break; |
445 | break; |