Skip to content

Fix messageWidth calculation for messages displayed in large font - #2231

Merged
Ralim merged 1 commit into
Ralim:devfrom
arlenko:fix-message-width-calculation
Jul 26, 2026
Merged

Fix messageWidth calculation for messages displayed in large font#2231
Ralim merged 1 commit into
Ralim:devfrom
arlenko:fix-message-width-calculation

Conversation

@arlenko

@arlenko arlenko commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
  • What kind of change does this PR introduce?
    Bug fix.
  • What is the current behaviour?
    For 128x32 OLED resolution, messageWidth assumes that all messages are displayed in a small font. However for warning messages, the message string is prepended with 0x01 which tells OLED::print to select large font. This results into an issue that warning messages do not auto scroll to the ending of the message. This issue was discovered while attempting to perform CJC calibration, the warning message didn't display the "...room temperature!" part.
  • What is the new behaviour (if this is a feature change)?
    Warning messages auto scroll to the ending of the message text.

@Ralim
Ralim merged commit bfee375 into Ralim:dev Jul 26, 2026
19 of 20 checks passed
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