Skip to content

fix: Add minus sign character support#16

Open
coinexplain wants to merge 1 commit intoBrandonLWhite:gh-pagesfrom
coinexplain:fix-minus-sign
Open

fix: Add minus sign character support#16
coinexplain wants to merge 1 commit intoBrandonLWhite:gh-pagesfrom
coinexplain:fix-minus-sign

Conversation

@coinexplain
Copy link

Hi Brandon,

This PR fixes an issue where the seven-segment display could not render the minus sign ('-') for negative values, even though the segment code exists.

The displayValue function in the sevenSegDigit widget returned early because '-' was not present in the c_aNumberSegments map's keys.

This change simply adds '-': 0x00 to the c_aNumberSegments map, allowing the existing logic to correctly handle and display the minus sign.

Now, passing values like "-05" or "-99" works as expected.

Thanks!

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