Skip to content

Commit

Permalink
autosave usermod: minor fix
Browse files Browse the repository at this point in the history
display->canDraw() is only availeable in _ALT four-line-display usermod
  • Loading branch information
softhack007 committed Sep 11, 2023
1 parent fc6c097 commit 1ddb654
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usermods/usermod_v2_auto_save/usermod_v2_auto_save.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1ddb654

Please sign in to comment.