This commit is contained in:
Tomislav Kopić 2024-11-27 18:49:49 +01:00
parent c145e6aee8
commit 2a5876ef77

View File

@ -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();
}