Rev 828 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 828 | Rev 878 | ||
---|---|---|---|
Line 520... | Line 520... | ||
520 | return PointList_GetAt(POIIndex); |
520 | return PointList_GetAt(POIIndex); |
521 | } |
521 | } |
Line 522... | Line 522... | ||
522 | 522 | ||
523 | 523 | ||
- | 524 | #define LINE_MAX 70 |
|
Line 524... | Line 525... | ||
524 | #define LINE_MAX 70 |
525 | #define WP_FILE_VERSION_COMPATIBLE 3 |
525 | #define WP_FILE_VERSION_COMPATIBLE 3 |
526 | #define WP_FILE_VERSION_COMPATIBLE2 4 |
526 | 527 | ||
527 | u8 PointList_Save(u8 * filename, u8* listname, u8 overwride) |
528 | u8 PointList_Save(u8 * filename, u8* listname, u8 overwride) |
Line 821... | Line 822... | ||
821 | return(WPL_ERROR); |
822 | return(WPL_ERROR); |
822 | } |
823 | } |
823 | } |
824 | } |
824 | else if (strcmp(name, "FILEVERSION") == 0) |
825 | else if (strcmp(name, "FILEVERSION") == 0) |
825 | { |
826 | { |
826 | if((u8)atoi(value) != WP_FILE_VERSION_COMPATIBLE) |
827 | if(((u8)atoi(value) != WP_FILE_VERSION_COMPATIBLE) && ((u8)atoi(value) != WP_FILE_VERSION_COMPATIBLE2)) |
827 | { |
828 | { |
828 | PointList_Clear(); |
829 | PointList_Clear(); |
829 | UART1_PutString("Bad file version!\r\n"); |
830 | UART1_PutString("Bad file version!\r\n"); |
830 | return(WPL_ERROR); |
831 | return(WPL_ERROR); |
831 | } |
832 | } |