Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 5 | Rev 6 | ||
|---|---|---|---|
| Line 115... | Line 115... | ||
| 115 | } |
115 | } |
| 116 | // we now have debounced switch states in sw_newstate . So we can go ahead and feed some of the |
116 | // we now have debounced switch states in sw_newstate . So we can go ahead and feed some of the |
| 117 | 117 | ||
| 118 | EncodeDial(0); |
118 | EncodeDial(0); |
| 119 | EncodeDial(1); |
119 | EncodeDial(1); |
| - | 120 | push_pos[0] =sw_newstate[4]; |
|
| - | 121 | push_pos[1] =sw_newstate[5]; |
|
| 120 | 122 | ||
| 121 | } |
123 | } |
| 122 | 124 | ||
| 123 | void zero_dial(int dial) { |
125 | void zero_dial(int dial) { |
| 124 | if(dial>=0 && dial < MAX_DIALS) |
126 | if(dial>=0 && dial < MAX_DIALS) |