fix showCurrentValue

This commit is contained in:
melody 2025-08-27 16:37:17 +02:00
commit 7a7d618263

View file

@ -148,7 +148,7 @@ class showCurrentValue : public Element {
tft.setTextSize(5);
tft.setTextColor(PRIMARY_FOREGROUND_COLOUR);
tft.setCursor(this->X + 1, this->Y + 1);
tft.print(this->data.getMaxDataPoint(), 1);
tft.print(this->data.getDataByIndex(0), 1);
tft.print(this->data.getUnit());
};
};