1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +01:00

Merge pull request #137 from DCC-EX/neil-LCDfix

Ensure loop2() doesn't run during initialisation if there's no display.
This commit is contained in:
Neil McKechnie 2021-03-16 22:03:56 +00:00 committed by GitHub
commit 42fdf4fed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ void LCDDisplay::loop() {
}
LCDDisplay *LCDDisplay::loop2(bool force) {
if (!lcdDisplay) return NULL;
unsigned long currentMillis = millis();
if (!force) {