Fix osd vbat digits

IE was showing 4.9 instead of 4.09
This commit is contained in:
fgiudice98 2020-03-31 21:41:06 +02:00
parent 5f8fc1e6f9
commit 9093c46456
1 changed files with 1 additions and 1 deletions

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);
}
}