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

Fix drawLogBuffer for scrolling #394

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Conversation

ropg
Copy link
Contributor

@ropg ropg commented Mar 10, 2024

When logBuffer has logBufferMaxLines, the drawing needs to start shifted up by displayHeight % lineHeight so that the first line drops off a bit, and not the last. Now printing to display really just works.

(I moved the length++ and removed the else because both sides of the condition started with it.)

When logBuffer has logBufferMaxLines, the drawing needs to start shifted up by displayHeight % lineHeight so that the first line drops off a bit, and not the last. Now printing to display really just works.

(I moved the `length++` and removed the `else` because both sides of the condition started with it.)
@marcelstoer marcelstoer merged commit 7782bc3 into ThingPulse:master Mar 10, 2024
6 checks passed
@ropg
Copy link
Contributor Author

ropg commented Mar 10, 2024

Tnx! There's actually a bit more work to be done: printing too-long strings shouldn't matter (except for size of logBuffer, working on that too) but it confuses the scroll somehow. Am on it.

@marcelstoer
Copy link
Member

Thanks for all your contributions, much appreciated!

@ropg ropg deleted the fix_scrolling branch March 11, 2024 18:34
todd-herbert added a commit to todd-herbert/meshtastic-oled that referenced this pull request Jun 17, 2024
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