Rev 737 | Rev 785 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 737 | Rev 767 | ||
---|---|---|---|
Line 417... | Line 417... | ||
417 | { |
417 | { |
418 | File_t *fp; |
418 | File_t *fp; |
419 | s8 wpline[LINE_MAX]; |
419 | s8 wpline[LINE_MAX]; |
420 | u8 retval = WPL_ERROR; |
420 | u8 retval = WPL_ERROR; |
Line 421... | Line 421... | ||
421 | 421 | ||
Line 422... | Line 422... | ||
422 | UART1_PutString("\n\r Save WPL..."); |
422 | UART1_PutString("\r\n Save WPL..."); |
423 | 423 | ||
424 | if(Fat16_IsValid()) |
424 | if(Fat16_IsValid()) |
425 | { // check if wpl file is existing |
425 | { // check if wpl file is existing |
Line 547... | Line 547... | ||
547 | u8 WPNumber = 0; |
547 | u8 WPNumber = 0; |
Line 548... | Line 548... | ||
548 | 548 | ||
549 | // clear point list first |
549 | // clear point list first |
550 | PointList_Clear(); |
550 | PointList_Clear(); |
551 | HeadingOld = -1; // updates the direction if the new direction is the same like last time |
551 | HeadingOld = -1; // updates the direction if the new direction is the same like last time |
552 | UART1_PutString("\n\r Read "); |
552 | UART1_PutString("\r\n Read "); |
553 | UART1_PutString(filename); |
553 | UART1_PutString(filename); |
Line 554... | Line 554... | ||
554 | UART1_PutString("..."); |
554 | UART1_PutString("..."); |
555 | 555 | ||
Line 804... | Line 804... | ||
804 | { |
804 | { |
805 | u8 retval = WPL_ERROR; |
805 | u8 retval = WPL_ERROR; |
806 | u8 filename[30]; |
806 | u8 filename[30]; |
807 | Point_t WP; |
807 | Point_t WP; |
Line 808... | Line 808... | ||
808 | 808 | ||
809 | UART1_PutString("\n\r write single point\n\r"); |
809 | UART1_PutString("\r\n write single point\r\n"); |
810 | if(GPSData.Position.Status == INVALID) |
810 | if(GPSData.Position.Status == INVALID) |
811 | { |
811 | { |
812 | UART1_PutString("ERROR: No GPS - Fix\n\r"); |
812 | UART1_PutString("ERROR: No GPS - Fix\r\n"); |
813 | return(retval); |
813 | return(retval); |
Line 814... | Line 814... | ||
814 | } |
814 | } |
815 | 815 |