Rev 75 | Rev 77 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 75 | Rev 76 | ||
|---|---|---|---|
| Line 237... | Line 237... | ||
| 237 | Info[itemIndex].Min = DataVal; // 12 bit max value |
237 | Info[itemIndex].Min = DataVal; // 12 bit max value |
| 238 | } |
238 | } |
| 239 | 239 | ||
| 240 | // detect change in observation being displayed, reset the dial |
240 | // detect change in observation being displayed, reset the dial |
| 241 | if (Observation < PLX_MAX_OBS) |
241 | if (Observation < PLX_MAX_OBS) |
| 242 | { |
242 | { |
| 243 | if (Observation != context.OldObservation.Obs || Instance != context.OldObservation.Instance) |
243 | if (Observation != context.OldObservation.Obs || Instance != context.OldObservation.Instance) |
| 244 | { |
244 | { |
| 245 | 245 | ||
| 246 | display.clearDisplay(BLACK); |
246 | display.clearDisplay(BLACK); |
| 247 | dial.draw_scale(DisplayInfo[Observation].Low, |
247 | dial.draw_scale(DisplayInfo[Observation].Low, |
| 248 | DisplayInfo[Observation].High, 12, 1, |
248 | DisplayInfo[Observation].High, 12, 1, |
| 249 | DisplayInfo[Observation].TickScale); |
249 | DisplayInfo[Observation].TickScale); |
| 250 | 250 | ||