mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-11 09:04:53 +00:00
[P157] Don't restart scrolling when the content isn't changed (7dtext)
This commit is contained in:
@@ -1049,6 +1049,10 @@ bool P157_data_struct::plugin_write_7dtext(const String& text) {
|
||||
}
|
||||
# endif // ifndef BUILD_NO_DEBUG
|
||||
# if P157_SCROLL_TEXT
|
||||
|
||||
if (_textToScroll.equals(text)) {
|
||||
return true; // Success, but no change
|
||||
}
|
||||
setTextToScroll(EMPTY_STRING);
|
||||
|
||||
setScrollEnabled(scrollAll || getEffectiveTextLength(text) > bufLen);
|
||||
|
||||
Reference in New Issue
Block a user