Rev 71 | Rev 74 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 71 | Rev 72 | ||
---|---|---|---|
Line 168... | Line 168... | ||
168 | 168 | ||
169 | int |
169 | int |
170 | cc_display(int dialIndex, int suppressIndex) |
170 | cc_display(int dialIndex, int suppressIndex) |
171 | 171 | ||
172 | { |
172 | { |
- | 173 | ||
- | 174 | ||
173 | if (dialIndex < 0 && dialIndex > MAX_DISPLAYS) |
175 | if (dialIndex < 0 && dialIndex > MAX_DISPLAYS) |
174 | return -1; |
176 | return -1; |
175 | context_t &context = contexts[dialIndex]; |
177 | context_t &context = contexts[dialIndex]; |
176 | displayDial_t &dial = dials[dialIndex]; |
178 | displayDial_t &dial = dials[dialIndex]; |
177 | stm32_halDisplay_t &display = displays[dialIndex]; |
179 | stm32_halDisplay_t &display = displays[dialIndex]; |
178 | int itemIndex = context.knobPos; |
180 | int itemIndex = context.knobPos; |
179 | char buff[10]; |
181 | char buff[10]; |
180 | int i; |
182 | int i; |
181 | char *msg; |
183 | char *msg; |
182 | int len; |
184 | int len; |
- | 185 | // check for startup phase |
|
- | 186 | if (itemIndex < 0) |
|
- | 187 | { |
|
- | 188 | display.clearDisplay(BLACK); |
|
- | 189 | i = small_sprintf(buff, "Wait"); |
|
- | 190 | display.gotoxy(64 - i * 4, 48); |
|
- | 191 | display.printString(large_font, buff, i, WHITE); |
|
- | 192 | ||
- | 193 | display.display(); |
|
- | 194 | return -1; |
|
- | 195 | } |
|
- | 196 | ||
- | 197 | ||
183 | 198 | ||
184 | // check for item suppression |
199 | // check for item suppression |
185 | if (itemIndex == suppressIndex) |
200 | if (itemIndex == suppressIndex) |
186 | { |
201 | { |
187 | context.dial1 = -1; |
202 | context.dial1 = -1; |