Rev 426 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 426 | Rev 436 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #include <inttypes.h> |
9 | #include <inttypes.h> |
10 | #include "uart0.h" |
10 | #include "uart0.h" |
11 | #include "printf_P.h" |
11 | #include "printf_P.h" |
12 | #include "ubx.h" |
12 | #include "ubx.h" |
13 | #include "timer0.h" |
13 | #include "timer0.h" |
- | 14 | #include "main.h" |
|
Line 14... | Line 15... | ||
14 | 15 | ||
15 | uint8_t MaxMenuItem = 3; |
16 | uint8_t MaxMenuItem = 3; |
16 | uint8_t MenuItem = 0; |
17 | uint8_t MenuItem = 0; |
Line 56... | Line 57... | ||
56 | if(RemoteKeys & KEY2) |
57 | if(RemoteKeys & KEY2) |
57 | { |
58 | { |
58 | if(MenuItem == MaxMenuItem) MenuItem = 0; |
59 | if(MenuItem == MaxMenuItem) MenuItem = 0; |
59 | else MenuItem++; |
60 | else MenuItem++; |
60 | } |
61 | } |
- | 62 | /* |
|
- | 63 | if(RemoteKeys & KEY4) |
|
- | 64 | { |
|
- | 65 | switch(SysState) |
|
- | 66 | { |
|
- | 67 | case STATE_IDLE: |
|
- | 68 | SysState = STATE_SEND_FOLLOWME; // activate followme only of no error has occured |
|
- | 69 | break; |
|
- | 70 | ||
- | 71 | case STATE_SEND_FOLLOWME: |
|
- | 72 | SysState = STATE_IDLE; |
|
- | 73 | break; |
|
- | 74 | ||
- | 75 | default: |
|
- | 76 | SysState = STATE_IDLE; |
|
- | 77 | break; |
|
- | 78 | } |
|
- | 79 | }*/ |
|
61 | if((RemoteKeys & KEY1) && (RemoteKeys & KEY2)) MenuItem = 0; |
80 | if((RemoteKeys & KEY1) && (RemoteKeys & KEY2)) MenuItem = 0; |
Line 62... | Line 81... | ||
62 | 81 | ||
Line 63... | Line 82... | ||
63 | LCD_Clear(); |
82 | LCD_Clear(); |