Rev 489 | Rev 497 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 489 | Rev 490 | ||
---|---|---|---|
Line 173... | Line 173... | ||
173 | void draw_big_variometer(uint8_t x, uint8_t y, int16_t variometer) { |
173 | void draw_big_variometer(uint8_t x, uint8_t y, int16_t variometer) { |
174 | int16_t index = 7 + variometer; |
174 | int16_t index = 7 + variometer; |
175 | if (index > 14) index = 14; |
175 | if (index > 14) index = 14; |
176 | else if (index < 0) index = 0; |
176 | else if (index < 0) index = 0; |
Line 177... | Line -... | ||
177 | - | ||
178 | // TODO: why does write_string_pgm_down(x, y-2, vario_pnt[index], 5); |
- | |
179 | // not work??? WTF?! |
177 | |
180 | write_string_pgm_down(x, y-2, (const char *) (pgm_read_word ( &(vario_pnt[index]))), 5); |
- | |
181 | #if 0 |
- | |
182 | switch (index) { |
- | |
183 | case 0: write_string_pgm_down(x, y-2, vario_pnt[0], 5); |
- | |
184 | break; |
- | |
185 | case 1: write_string_pgm_down(x, y-2, vario_pnt[1], 5); |
- | |
186 | break; |
- | |
187 | case 2: write_string_pgm_down(x, y-2, vario_pnt[2], 5); |
- | |
188 | break; |
- | |
189 | case 3: write_string_pgm_down(x, y-2, vario_pnt[3], 5); |
- | |
190 | break; |
- | |
191 | case 4: write_string_pgm_down(x, y-2, vario_pnt[4], 5); |
- | |
192 | break; |
- | |
193 | case 5: write_string_pgm_down(x, y-2, vario_pnt[5], 5); |
- | |
194 | break; |
- | |
195 | case 6: write_string_pgm_down(x, y-2, vario_pnt[6], 5); |
- | |
196 | break; |
- | |
197 | case 7: write_string_pgm_down(x, y-2, vario_pnt[7], 5); |
- | |
198 | break; |
- | |
199 | case 8: write_string_pgm_down(x, y-2, vario_pnt[8], 5); |
- | |
200 | break; |
- | |
201 | case 9: write_string_pgm_down(x, y-2, vario_pnt[9], 5); |
- | |
202 | break; |
- | |
203 | case 10: write_string_pgm_down(x, y-2, vario_pnt[10], 5); |
- | |
204 | break; |
- | |
205 | case 11: write_string_pgm_down(x, y-2, vario_pnt[11], 5); |
- | |
206 | break; |
- | |
207 | case 12: write_string_pgm_down(x, y-2, vario_pnt[12], 5); |
- | |
208 | break; |
- | |
209 | case 13: write_string_pgm_down(x, y-2, vario_pnt[13], 5); |
- | |
210 | break; |
- | |
211 | default: write_string_pgm_down(x, y-2, vario_pnt[14], 5); |
- | |
212 | } |
- | |
213 | #endif |
178 | write_string_pgm_down(x, y-2, (const char *) (pgm_read_word ( &(vario_pnt[index]))), 5); |
Line 214... | Line 179... | ||
214 | } |
179 | } |
215 | 180 | ||
216 | /* ########################################################################## |
181 | /* ########################################################################## |