diff --git a/common/display.yaml b/common/display.yaml index e8aa20d..1951460 100644 --- a/common/display.yaml +++ b/common/display.yaml @@ -97,7 +97,7 @@ display: it.filled_rectangle(130-10, 21, 20, 10, COLOR_OFF); it.print(130, 26, id(font1), TextAlign::CENTER, "WZ"); if (id(iaq_accuracy_wz).state >= 2) { - it.printf(130, 41, id(font1), "%.0f ", id(iaq_wz).state); + it.printf(130, 41, id(font1), TextAlign::BASELINE_CENTER, "%.0f", id(iaq_wz).state); if (id(iaq_wz).state < 50) { it.printf(130, 43, id(font1), TextAlign::TOP_CENTER, "excellent"); } else if (id(iaq_wz).state < 100) { @@ -121,7 +121,7 @@ display: it.filled_rectangle(175-10, 21, 20, 10, COLOR_OFF); it.print(175, 26, id(font1), TextAlign::CENTER, "SZ"); if (id(iaq_accuracy_sz).state >= 2) { - it.printf(175, 41, id(font1), "%.0f ", id(iaq_sz).state); + it.printf(175, 41, id(font1), TextAlign::BASELINE_CENTER, "%.0f", id(iaq_sz).state); if (id(iaq_sz).state < 50) { it.printf(175, 43, id(font1), TextAlign::TOP_CENTER, "excellent"); } else if (id(iaq_sz).state < 100) {