Skip to content

Commit

Permalink
Fix hex drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Jun 16, 2022
1 parent 21f6960 commit 167bf9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Core/Drivers/OLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void OLED::drawHex(uint32_t x, FontStyle fontStyle) {
// print number to hex
for (uint_fast8_t i = 0; i < 8; i++) {
uint16_t value = (x >> (4 * (7 - i))) & 0b1111;
drawChar(value, fontStyle);
drawChar(value + 2, fontStyle);
}
}
// maximum places is 5
Expand Down

0 comments on commit 167bf9f

Please sign in to comment.