Skip to content

Commit

Permalink
Merge pull request #4 from amperka/bug-fix
Browse files Browse the repository at this point in the history
fix-bug
  • Loading branch information
S-VIN authored Jan 16, 2020
2 parents 611ae5f + 8713182 commit 8253f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QuadDisplay2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ void QuadDisplay::displayInt(int val, bool padZeros, uint8_t dots) {
}

void QuadDisplay::displayFloat(float val, uint8_t precision, bool padZeros) {
uint8_t dot = 0;
uint8_t dot = 0b0001;
while (precision) {
val *= 10;
--precision;
dot++;
dot <<= 1;
}
displayInt((int)val, padZeros, dot);
}
Expand Down

0 comments on commit 8253f35

Please sign in to comment.