1
0
forked from me/IronOS

moved debugNumber into OLED class

This commit is contained in:
David P Hilton
2018-10-28 21:51:49 -06:00
parent 76b460cd77
commit 6a3ca96815
3 changed files with 16 additions and 14 deletions

View File

@@ -90,20 +90,6 @@ int main(void) {
}
}
void debugNumber(int32_t val) {
if (abs(val) > 99999) {
OLED::print(" OoB"); // out of bounds
return;
}
if (val >= 0) {
OLED::drawChar(' ');
OLED::printNumber(val, 5);
} else {
OLED::drawChar('-');
OLED::printNumber(-val, 5);
}
}
void printVoltage() {
OLED::printNumber(getInputVoltageX10(systemSettings.voltageDiv) / 10, 2);
OLED::drawChar('.');