Skip to content

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
@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