Skip to content

Commit

Permalink
USBPDDebug - Allow trailing zeros after a decimal point.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelrmlink committed Mar 6, 2023
1 parent 925800d commit 9a16eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Core/Threads/OperatingModes/USBPDDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void showPDDebug(void) {
} else {
OLED::printNumber(current_a_x100 / 100, 2, FontStyle::SMALL, true); // print the current in 0.1A res
OLED::print(SmallSymbolDot, FontStyle::SMALL);
OLED::printNumber(current_a_x100 % 100, 2, FontStyle::SMALL, true); // print the current in 0.1A res
OLED::printNumber(current_a_x100 % 100, 2, FontStyle::SMALL, false); // print the current in 0.1A res
OLED::print(SmallSymbolAmps, FontStyle::SMALL);
}
}
Expand Down

0 comments on commit 9a16eb8

Please sign in to comment.