Skip to content

Commit

Permalink
Merge pull request #19 from hastypete/master
Browse files Browse the repository at this point in the history
Fix to displayHex  logical error
  • Loading branch information
gavinlyonsrepo authored May 19, 2022
2 parents 787292a + 4bce9d4 commit 49a33a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TM1638plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ void TM1638plus::displayASCII(uint8_t position, uint8_t ascii) {
void TM1638plus::displayHex(uint8_t position, uint8_t hex)
{
uint8_t offset = 0;
hex = hex % 16;
if (hex <= 9)
{
display7Seg(position, pgm_read_byte(&SevenSeg[hex + TM_HEX_OFFSET]));
Expand Down

0 comments on commit 49a33a8

Please sign in to comment.