Skip to content

Commit

Permalink
telem item: let it blink
Browse files Browse the repository at this point in the history
  • Loading branch information
olliw42 authored and raphaelcoeffic committed Jun 26, 2021
1 parent edbec9f commit 1dafc3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radio/src/gui/colorlcd/model_telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ class SensorButton : public Button {
else
dc->drawSolidFilledRect(2, 2, rect.w - 4, rect.h - 4, FIELD_BGCOLOR);

if (telemetryItem.isFresh())
dc->drawFilledCircle(24, (2 + rect.h - 4)/2, 4, DEFAULT_COLOR);

dc->drawNumber(2, 1, number, LEFT, 0, nullptr, ":");

dc->drawSizedText(SENSOR_COL1, line1, g_model.telemetrySensors[index].label, TELEM_LABEL_LEN);
Expand Down

0 comments on commit 1dafc3a

Please sign in to comment.