Skip to content

Fix display freezing below -9.9 °C and at 100 % humidity, add leading zero at x.9 - #201

Open
altoing wants to merge 1 commit into
devbis:masterfrom
altoing:fix/display-edge-cases
Open

altoing wants to merge 1 commit into
devbis:masterfrom
altoing:fix/display-edge-cases

Conversation

@altoing

@altoing altoing commented Sep 29, 2026

Copy link
Copy Markdown

Three small display fixes, no behaviour change otherwise:

  • Below -9.9 °C the LCD freezes. With a decimal point the big number only fits -9.9…199.9, so show_big_number() returns early and the last value stays on screen, e.g. it shows -9.9 through a cold night. The same happens in °F. Now whole degrees are shown below that (-15), like °F already does above 99.9.
  • At 100 % humidity the LCD freezes for the same reason: show_small_number() rejects 100. The shown value is now capped at 99.
  • 0.9 is shown as .9 (and -0.9 as -.9). The leading zero was only added for number < 9; it's now < 10.

Built with the repo Dockerfile (SDK 3.7.2.0).

…g leading zero at x.9

- Below -9.9 °C (or °F) the value does not fit the big number with a
  decimal point, so show_big_number() returned early and the LCD kept
  the last value. Show whole degrees instead (e.g. -15).
- At 100 % humidity show_small_number() returned early for the same
  reason. Cap the shown value at 99.
- 0.9 was shown as ".9": the leading zero was only added below 9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant