Rev 1437 | Rev 1866 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1437 | Rev 1771 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | if (!(COSD_FLAGS_MODES & COSD_FLAG_HUD)) { |
57 | if (!(COSD_FLAGS_MODES & COSD_FLAG_HUD)) { |
58 | COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN; |
58 | COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN; |
59 | } |
59 | } |
60 | COSD_FLAGS_MODES |= COSD_FLAG_HUD; |
60 | COSD_FLAGS_MODES |= COSD_FLAG_HUD; |
61 | } else { // we do not want hud |
61 | } else { // we do not want hud |
62 | if (COSD_FLAGS_MODES & COSD_FLAG_HUD) { |
- | |
63 | clear(); |
- | |
64 | } |
- | |
65 | COSD_FLAGS_MODES &= ~COSD_FLAG_HUD; |
62 | COSD_FLAGS_MODES &= ~COSD_FLAG_HUD; |
66 | } |
63 | } |
67 | } |
64 | } |
68 | EMCUCR |= (1 << ISC2); // next one is rising |
65 | EMCUCR |= (1 << ISC2); // next one is rising |
69 | } |
66 | } |
70 | //write_ndigit_number_u(2, 5, ppm, 1000, 0); // debug |
- | |
71 | //write_ndigit_number_u(2, 6, valid_ppm_to_go, 100, 0); // debug |
67 | //write_ndigit_number_u(2, 6, valid_ppm_to_go, 100, 0); // debug |
72 | //write_ndigit_number_u(2, 7, COSD_FLAGS_CONFIG, 100, 0); // debug |
68 | //write_ndigit_number_u(2, 7, COSD_FLAGS_CONFIG, 100, 0); // debug |
73 | PORTC ^= (1 << PC3); |
69 | //PORTC ^= (1 << PC3); // LED4_TOGGLE // debug |
74 | //uptime = ppm; |
70 | //uptime = ppm; |
75 | } |
71 | } |
Line 76... | Line 72... | ||
76 | 72 |