Rev 1941 | Rev 1966 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1941 | Rev 1944 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | { |
46 | { |
47 | case 0: |
47 | case 0: |
48 | LCD_printfxy(0,0,"+ MikroKopter +"); |
48 | LCD_printfxy(0,0,"+ MikroKopter +"); |
49 | LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH +'a'); |
49 | LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH +'a'); |
50 | LCD_printfxy(0,2,"Setting:%d %s", GetActiveParamSet(),Mixer.Name); |
50 | LCD_printfxy(0,2,"Setting:%d %s", GetActiveParamSet(),Mixer.Name); |
- | 51 | ||
- | 52 | if(VersionInfo.HardwareError[1] & FC_ERROR1_MIXER) LCD_printfxy(0,3,"Mixer Error!") |
|
- | 53 | else |
|
- | 54 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
51 | if(NC_ErrorCode) |
55 | if(NC_ErrorCode) |
52 | { |
56 | { |
53 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
- | |
54 | LCD_printfxy(0,3,"ERR%2d:",NC_ErrorCode); |
57 | LCD_printfxy(0,3,"ERR%2d:",NC_ErrorCode); |
55 | _printf_P(&Menu_Putchar, NC_ERROR_TEXT[NC_ErrorCode] , 0); |
58 | _printf_P(&Menu_Putchar, NC_ERROR_TEXT[NC_ErrorCode] , 0); |
56 | #else |
- | |
57 | LCD_printfxy(0,3,"! NC-ERR: %2d ! ",NC_ErrorCode); |
- | |
58 | #endif |
- | |
59 | } |
59 | } |
60 | else |
60 | else |
- | 61 | #endif |
|
61 | if(VersionInfo.HardwareError[0]) LCD_printfxy(0,3,"Hardware Error 1:%d !!",VersionInfo.HardwareError[0]) |
62 | if(VersionInfo.HardwareError[0]) LCD_printfxy(0,3,"Hardware Error 1:%d !!",VersionInfo.HardwareError[0]) |
62 | else |
63 | else |
63 | if(MissingMotor) LCD_printfxy(0,3,"Missing BL-Ctrl:%d!!",MissingMotor) |
64 | if(MissingMotor) LCD_printfxy(0,3,"Missing BL-Ctrl:%d!!",MissingMotor) |
- | 65 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
- | 66 | #else |
|
64 | else |
67 | else |
- | 68 | if(NC_ErrorCode) |
|
- | 69 | { |
|
65 | if(VersionInfo.HardwareError[1] & FC_ERROR1_MIXER) LCD_printfxy(0,3,"Mixer Error!") |
70 | LCD_printfxy(0,3,"! NC-ERR: %2d ! ",NC_ErrorCode); |
66 | else |
71 | } |
- | 72 | #endif |
|
67 | // if(VersionInfo.HardwareError[1]) LCD_printfxy(0,3,"Error 2:%d !!",VersionInfo.HardwareError[1]) |
73 | // if(VersionInfo.HardwareError[1]) LCD_printfxy(0,3,"Error 2:%d !!",VersionInfo.HardwareError[1]) |
68 | // else |
74 | else |
69 | if(I2CTimeout < 6) LCD_printfxy(0,3,"I2C ERROR!!!") |
75 | if(I2CTimeout < 6) LCD_printfxy(0,3,"I2C ERROR!!!") |
70 | break; |
76 | break; |
71 | case 1: |
77 | case 1: |
72 | if(Parameter_GlobalConfig & CFG_HOEHENREGELUNG) |
78 | if(Parameter_GlobalConfig & CFG_HOEHENREGELUNG) |
73 | { |
79 | { |