From 9337d28e75ee5321f65d26ba20d7087278e860ee Mon Sep 17 00:00:00 2001 From: Sascha Nitsch Date: Tue, 22 Mar 2022 03:43:49 +0100 Subject: [PATCH] fixed height calculation --- cimditprofile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cimditprofile.cpp b/cimditprofile.cpp index d675dd3..3f23e87 100644 --- a/cimditprofile.cpp +++ b/cimditprofile.cpp @@ -443,7 +443,7 @@ void CimditProfile::showActivate() { w = w >> 1; h = 8; } - display.setCursor((SCREEN_WIDTH - w) >> 1, (SCREEN_HEIGHT >> 1) + ((SCREEN_HEIGHT - h)>> 1)); + display.setCursor((SCREEN_WIDTH - w) >> 1, SCREEN_HEIGHT- h); display.write(m_profiles[m_selectingProfile]); display.write("?"); display.display();