might be slightly faster like this

This commit is contained in:
Drath
2025-10-29 17:39:13 +01:00
parent e29e72fe7a
commit 871edb642e

View File

@@ -117,9 +117,8 @@ void displayThread(std::stop_token st, Sensors* s) {
for (auto &fan : s->sys.fan_speed)
cpu_fan += fan;
cpu_fan /= 2;
// write to display buffer
lcd.clearBuf();
lcd.writeBuf(0, 0, pad(s->td.date, 11, true) + " " + s->td.time + lcd.bar(7, s->gpu.usage_core / 100.0));
lcd.writeBuf(0, 26, pNum(s->avg[0], s->avg[0] > 10 ? 1 : 2));
lcd.writeBuf(0, 31, pNum(s->avg[1], s->avg[1] > 10 ? 1 : 2));
@@ -145,6 +144,7 @@ void displayThread(std::stop_token st, Sensors* s) {
}
lcd.flushBuf();
lcd.clearBuf();
}
lcd._open();