You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
displayHex(16) should show zero, but shows 1
(since of course '0' comes after 'F')
That way no matter what number you send, you will see the lower nibble correctly.
The text was updated successfully, but these errors were encountered:
Here is fix:
Add a line to displayHex as such:
uint8_t offset = 0;
hex = hex % 16; <<<< This is the added line. Mod makes sure no matter what the value is it will be 0-15
if (hex <= 9)
For model 1. I don't have model 2 to work with to fix that.
displayHex(16) should show zero, but shows 1
(since of course '0' comes after 'F')
That way no matter what number you send, you will see the lower nibble correctly.
The text was updated successfully, but these errors were encountered: