Rev 1923 | Rev 1930 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1923 | Rev 1925 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #include "printf_P.h" |
2 | #include "printf_P.h" |
3 | #include "main.h" |
3 | #include "main.h" |
4 | #include "spi.h" |
4 | #include "spi.h" |
5 | #include "capacity.h" |
5 | #include "capacity.h" |
Line -... | Line 6... | ||
- | 6 | ||
- | 7 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
6 | 8 | ||
7 | #define HoTT_printf(format, args...) { _printf_P(&LIBFC_HoTT_Putchar, PSTR(format) , ## args);} |
9 | #define HoTT_printf(format, args...) { _printf_P(&LIBFC_HoTT_Putchar, PSTR(format) , ## args);} |
8 | #define HoTT_printfxy(x,y,format, args...) { LIBFC_HoTT_SetPos(y * 21 + x); _printf_P(&LIBFC_HoTT_Putchar, PSTR(format) , ## args);} |
10 | #define HoTT_printfxy(x,y,format, args...) { LIBFC_HoTT_SetPos(y * 21 + x); _printf_P(&LIBFC_HoTT_Putchar, PSTR(format) , ## args);} |
9 | #define HoTT_printfxy_INV(x,y,format, args...) { LIBFC_HoTT_SetPos(y * 21 + x); _printf_P(&LIBFC_HoTT_Putchar_INV, PSTR(format) , ## args);} |
11 | #define HoTT_printfxy_INV(x,y,format, args...) { LIBFC_HoTT_SetPos(y * 21 + x); _printf_P(&LIBFC_HoTT_Putchar_INV, PSTR(format) , ## args);} |
10 | #define HoTT_printfxy_BLINK(x,y,format, args...) { LIBFC_HoTT_SetPos(y * 21 + x); _printf_P(&LIBFC_HoTT_Putchar_BLINK, PSTR(format) , ## args);} |
12 | #define HoTT_printfxy_BLINK(x,y,format, args...) { LIBFC_HoTT_SetPos(y * 21 + x); _printf_P(&LIBFC_HoTT_Putchar_BLINK, PSTR(format) , ## args);} |
Line 116... | Line 118... | ||
116 | switch (GPSInfo.SatFix) |
118 | switch (GPSInfo.SatFix) |
117 | { |
119 | { |
118 | case SATFIX_3D: |
120 | case SATFIX_3D: |
119 | HoTT_printfxy(16,4," 3D "); |
121 | HoTT_printfxy(16,4," 3D "); |
120 | break; |
122 | break; |
121 | - | ||
122 | case SATFIX_2D: |
123 | //case SATFIX_2D: |
123 | case SATFIX_NONE: |
124 | //case SATFIX_NONE: |
124 | default: |
125 | default: |
125 | HoTT_printfxy_INV(16,4,"NOFIX"); |
126 | HoTT_printfxy_BLINK(16,4,"NOFIX"); |
126 | break; |
127 | break; |
127 | } |
128 | } |
128 | if(GPSInfo.Flags & FLAG_DIFFSOLN) |
129 | if(GPSInfo.Flags & FLAG_DIFFSOLN) |
129 | { |
130 | { |
130 | HoTT_printfxy(16,4,"DGPS "); |
131 | HoTT_printfxy(16,4,"DGPS "); |
Line 246... | Line 247... | ||
246 | break; |
247 | break; |
247 | } |
248 | } |
248 | else page = 0; |
249 | else page = 0; |
249 | } |
250 | } |
Line 250... | Line 251... | ||
250 | 251 |