backlight at startup in -d mode

This commit is contained in:
Drath
2025-04-27 10:48:05 +02:00
parent 71a4edc18b
commit c420a3b8e7

View File

@@ -165,6 +165,7 @@ int main(int argc, char *argv[]) {
if (argc > 1 && std::string(argv[1]) == "-d") {
std::cout << "[Chrono] Running in daemon mode, " << LCD_INTERVAL_MS << "ms interval" << std::endl;
lcd.setContrast(LCD_CONTRAST);
lcd.setBacklight(true);
std::chrono::milliseconds interval(LCD_INTERVAL_MS);
auto start = std::chrono::steady_clock::now();
while (true) {
@@ -177,4 +178,4 @@ int main(int argc, char *argv[]) {
}
return 0;
}
}