From 2a5876ef7731bea3c473ea251f766759a7e32e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Wed, 27 Nov 2024 18:49:49 +0100 Subject: [PATCH] Fix --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b0e1156..98ac9b3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -109,7 +109,7 @@ void fetchActiveProblems() { severityCounts[severity]++; } - problemDescriptions += description + " "; // Append description with space for better display + problemDescriptions += description + " "; // Append description with space for better display newProblemCount++; } @@ -125,7 +125,6 @@ void fetchActiveProblems() { display.clearDisplay(); display.setCursor(0,30); display.print("Error querying zabbix API"); - } http.end(); @@ -159,9 +158,9 @@ void displayProblems() { } // Draw the file name with current scroll position display.setTextSize(2); - display.setCursor(scrollPos, 49); + display.setCursor(scrollPos, 48); display.print(problemDescriptions); - display.drawLine(0,47,127,47,1); + display.drawLine(0,46,127,46,1); display.display(); }