Skip to content

Fix for fence post error in Display Customer Character function #6

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

Closed
wants to merge 4 commits into from

Conversation

fourstix
Copy link
Contributor

This pull request changes the if statement in file OpenLCD.ino, line 266 to be 35 to 42 inclusive. This removes the extraneous display customer character function for a ninth (non-existent) character.

Closes #5

Fixed a bug (Fence Post error) in the Display Customer character command that allowed the user to request a ninth character when only 8 are allowed.  The upper limit in the if statement was off by one.  The allowable range should be 35 to 42, inclusive, not 35 to 43.
Fixed a fence post error in the Display Custom Character function
This allows the user to print a pipe control character to the display by escaping the control character as a double pipe
Add logic to print pipe if second control chracter is read
@nseidle nseidle mentioned this pull request Aug 25, 2018
@nseidle
Copy link
Member

nseidle commented Aug 25, 2018

Looks good! Duplicate of #7. Closing this one.

@nseidle nseidle closed this Aug 25, 2018
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

Successfully merging this pull request may close these issues.

2 participants