1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Merge pull request #9663 from fgiudice98/fix-vbat-digits

Fix osd vbat digits
This commit is contained in:
Michael Keller 2020-04-02 13:40:56 +13:00 committed by GitHub
commit 98e3d291bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1037,7 +1037,7 @@ static void osdElementMainBatteryVoltage(osdElementParms_t *element)
batteryVoltage = (batteryVoltage + 5) / 10;
tfp_sprintf(element->buff + 1, "%d.%d%c", batteryVoltage / 10, batteryVoltage % 10, SYM_VOLT);
} else {
tfp_sprintf(element->buff + 1, "%d.%d%c", batteryVoltage / 100, batteryVoltage % 100, SYM_VOLT);
tfp_sprintf(element->buff + 1, "%d.%02d%c", batteryVoltage / 100, batteryVoltage % 100, SYM_VOLT);
}
}