telem item: let it blink

This commit is contained in:
olliw42
2021-06-26 06:37:59 +02:00
committed by Raphael Coeffic
parent edbec9f35e
commit 1dafc3aacc
@@ -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);