Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [P012] Display LCD2004 in Line 1 show ESP Easy if it is blank #4920

Closed
iz8mbw opened this issue Dec 26, 2023 · 14 comments
Closed

[BUG] [P012] Display LCD2004 in Line 1 show ESP Easy if it is blank #4920

iz8mbw opened this issue Dec 26, 2023 · 14 comments

Comments

@iz8mbw
Copy link
Contributor

iz8mbw commented Dec 26, 2023

Hello.
In LCD2004 display if the Line 1 (first line) is blank (not valorized) the display show "ESP Easy" text instead to show nothing.

@tonhuisman
Copy link
Contributor

tonhuisman commented Dec 26, 2023

The code doesn't replace the current content for an empty template line, and hasn't been changed for over 3 years (and probably has worked this way much longer), so it's not a new bug...

Edit: There is a command lcdcmd,clear to clear the display, and also there may be users that expect this text to be displayed 😛
Edit2: fix typo

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Dec 26, 2023

Users expect this text to be displayed can simply write this text. Users want to have the first line blank can (should) simply leave the field blank.

@tonhuisman
Copy link
Contributor

The actual reason that empty template lines are skipped is that you can use the lcd command to put custom/external content on an empty template-line and standard text or variable content using the template.

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Dec 26, 2023

Ton but if I leave blank the second or the third or the fourth lines it works as expected, so these lines remain blank.
The bug is only for the first line.

@tonhuisman
Copy link
Contributor

Only the first line is used to display the splash text 🙈
I'll add some code to initially clear the display, but the ESPEasy splash text may then be displayed only very briefly.

@TD-er
Copy link
Member

TD-er commented Dec 26, 2023

Just check if this "ESPEasy" string is still present on the screen and then completely clear the line if someone wants to write to it.
Why wouldn't anyone have "ESPEasy" being displayed like forever? ;)

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Dec 26, 2023

When I put some text on the first line, it display the text I wrote.
When I clear the field, it display "ESP Easy".

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Dec 26, 2023

When the board boot I see the splash text "ESP Easy" (only first line with this text, other lines are blank). Later, the lines are correctly valorized except the first line if/when the field is blank.

@tonhuisman
Copy link
Contributor

Yes, the issue is clear, it's just that it is also (at least partly) by design, except that the design didn't take the splash into account 😉
As said, the intent of blank lines in the template is that they are (usually) filled from rules or via http commands, then there is no issue...

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Dec 26, 2023

Oh yes, if I valorize the field with text or via rules the issue disappears 😀

@tonhuisman
Copy link
Contributor

tonhuisman commented Jul 3, 2024

@iz8mbw This can be closed as it has been resolved via #5043 will be included in next release.

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Jul 3, 2024

Yes, sorry if I miss to close it.

@iz8mbw
Copy link
Contributor Author

iz8mbw commented Jul 3, 2024

#5043

@iz8mbw iz8mbw closed this as completed Jul 3, 2024
@tonhuisman
Copy link
Contributor

Yes, sorry if I miss to close it.

Well, I could have auto-closed it when the PR was merged if properly annotated, but I didn't, so it's most likely my mistake 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants