Subversion Repositories NaviCtrl

Rev

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

Rev 502 Rev 503
Line 488... Line 488...
488
                case 24:
488
                case 24:
489
                        {
489
                        {
490
                                static u8 index = 1, ret = 0;
490
                                static u8 index = 1, ret = 0;
491
                                if(Keys & KEY3) //  next step
491
                                if(Keys & KEY3) //  next step
492
                                {
492
                                {
493
                                        if(index < 4) index++;
493
                                        if(index < ToFC_MaxWpListIndex) index++;
494
                                        else index = 1;
494
                                        else index = 1;
495
                                }
495
                                }
496
                                if(Keys & KEY4)
-
 
497
                                {
-
 
498
                                        WPL_Store.Index = index;
-
 
499
                                        if(PointList_ReadFromFile(&WPL_Store) == WPL_OK)
496
                                if(Keys & KEY4) FromFC_LoadWP_List = index;
500
                                        {                      
-
 
501
                                                if(FC.StatusFlags & FC_STATUS_FLY) PointList_WPActive(TRUE);
-
 
502
                                                GPS_pWaypoint = PointList_WPBegin(); // updates POI index
-
 
503
                                                BeepTime = 150;
-
 
504
                                    }
-
 
505
                                }
-
 
506
                                LCD_printfxy(0,0,"Load WPL" );
497
                                LCD_printfxy(0,0,"Load WPL (fix)" );
507
                                LCD_printfxy(0,1,"Name: %s", WPL_Store.Name);
498
                                LCD_printfxy(0,1,"Name: %s", WPL_Store.Name);
508
                                //                12345678901234567890
499
                                //                12345678901234567890
509
                                LCD_printfxy(0,2,"Points    Index     ");
500
                                LCD_printfxy(0,2,"Points    Index     ");
510
                                LCD_printfxy(0,3," %3d      %3d   LOAD", PointList_GetCount(), index);
501
                                LCD_printfxy(0,3," %3d      %3d   LOAD", PointList_GetCount(), index);
511
                        }                                                
502
                        }