Subversion Repositories NaviCtrl

Rev

Rev 490 | Rev 492 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 490 Rev 491
Line 488... Line 488...
488
                                {
488
                                {
489
                                        pPoint = (Point_t*)SerialMsg.pData;
489
                                        pPoint = (Point_t*)SerialMsg.pData;
Line 490... Line 490...
490
 
490
 
491
                                        if((pPoint->Position.Status == INVALID) && (pPoint->Index == 0))
491
                                        if((pPoint->Position.Status == INVALID) && (pPoint->Index == 0))
492
                                        {
-
 
493
                                                //PointList_SaveToFile(1);      // save to file before clearing the list
492
                                        {
494
                                                PointList_Clear();
493
                                                PointList_Clear();
495
                                                GPS_pWaypoint = PointList_WPBegin();
494
                                                GPS_pWaypoint = PointList_WPBegin();
496
                                                UART1_Request_WritePoint = 0; // return new point count
495
                                                UART1_Request_WritePoint = 0; // return new point count
497
                                        }
496
                                        }
Line 527... Line 526...
527
                                                s16 value;
526
                                                s16 value;
528
                                                value = SerialMsg.pData[2] + (s16)SerialMsg.pData[3] * 0x0100;
527
                                                value = SerialMsg.pData[2] + (s16)SerialMsg.pData[3] * 0x0100;
529
                                                NCParams_SetValue(SerialMsg.pData[1], &value);
528
                                                NCParams_SetValue(SerialMsg.pData[1], &value);
530
                                        }
529
                                        }
531
                                        break;
530
                                        break;
-
 
531
                                       
-
 
532
                                        case 2:
-
 
533
                                        // read wp list from file
-
 
534
                                        if(PointList_ReadFromFile(SerialMsg.pData[2]))
-
 
535
                                        {       //and move all wp relative so that 1st wp gets current positition
-
 
536
                                                PointList_Move(1, &GPSData.Position);
-
 
537
                                        }
-
 
538
                                        else PointList_Clear();
-
 
539
                                        break;
Line 532... Line 540...
532
 
540
 
533
                                        default:
541
                                        default:
534
                                        break;
542
                                        break;
535
                                }
543
                                }