autosave usermod: minor fix
display->canDraw() is only availeable in _ALT four-line-display usermod
This commit is contained in:
@@ -90,7 +90,11 @@ class AutoSaveUsermod : public Usermod {
|
||||
#ifdef USERMOD_FOUR_LINE_DISPLAY
|
||||
if (display != nullptr) {
|
||||
display->wakeDisplay();
|
||||
#if defined(USE_ALT_DISPLAY) || defined(USE_ALT_DISPlAY)
|
||||
if (display->canDraw()) display->overlay("Settings", "Auto Saved", 1500); // WLEDMM bugfix
|
||||
#else
|
||||
display->overlay("Settings", "Auto Saved", 1500);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user