Subversion Repositories FlightCtrl

Rev

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

Rev 1928 Rev 1930
Line 2... Line 2...
2
#include "libfc.h"
2
#include "libfc.h"
3
#include "printf_P.h"
3
#include "printf_P.h"
4
#include "main.h"
4
#include "main.h"
5
#include "spi.h"
5
#include "spi.h"
6
#include "capacity.h"
6
#include "capacity.h"
-
 
7
#include "hottmenu.h"
Line 7... Line 8...
7
 
8
 
8
#define JETIBOX_KEY_RIGHT       0x1F
9
#define JETIBOX_KEY_RIGHT       0x1F
9
#define JETIBOX_KEY_UP          0x2F
10
#define JETIBOX_KEY_UP          0x2F
10
#define JETIBOX_KEY_DOWN        0x4F
11
#define JETIBOX_KEY_DOWN        0x4F
Line 27... Line 28...
27
        }
28
        }
28
        else
29
        else
29
        {
30
        {
30
                JetiBox_printfxy(6,0,"Status");
31
                JetiBox_printfxy(6,0,"Status");
31
        }
32
        }
-
 
33
 
-
 
34
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
-
 
35
        if(NC_ErrorCode)
-
 
36
        {
-
 
37
         static unsigned int timer;
-
 
38
         static char toggle = 1;
-
 
39
     
-
 
40
         if(CheckDelay(timer)) { if(toggle) toggle = 0; else toggle = 1; timer = SetDelay(1500);};
-
 
41
     if(toggle)
-
 
42
          {
-
 
43
       LIBFC_JetiBox_SetPos(0);
-
 
44
           _printf_P(&LIBFC_JetiBox_Putchar, NC_ERROR_TEXT[NC_ErrorCode] , 0);
-
 
45
          }
-
 
46
          else
-
 
47
          {
-
 
48
           JetiBox_printfxy(6,0,"ERROR: %2d ",NC_ErrorCode);
-
 
49
           JetiBeep = 'O';
-
 
50
          }
-
 
51
        }
-
 
52
#else
32
        if(NC_ErrorCode) JetiBox_printfxy(6,0,"ERROR: %2d ",NC_ErrorCode);
53
        if(NC_ErrorCode) { JetiBox_printfxy(6,0,"ERROR: %2d ",NC_ErrorCode); JetiBeep = 'O';};
-
 
54
#endif
33
        JetiBox_printfxy(0,1,"%4i %2i:%02i",Capacity.UsedCapacity,FlugSekunden/60,FlugSekunden%60);
55
        JetiBox_printfxy(0,1,"%4i %2i:%02i",Capacity.UsedCapacity,FlugSekunden/60,FlugSekunden%60);
34
        if(Parameter_GlobalConfig & CFG_HOEHENREGELUNG)
56
        if(Parameter_GlobalConfig & CFG_HOEHENREGELUNG)
35
        {
57
        {
36
                JetiBox_printfxy(10,1,"%4im%c", (int16_t)(HoehenWert/100),VarioCharacter);
58
                JetiBox_printfxy(10,1,"%4im%c", (int16_t)(HoehenWert/100),VarioCharacter);
37
        }
59
        }