1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Made ESC feedback and vbat calculation more resilient.

Fixed tests.

Cosmetic fix.
This commit is contained in:
mikeller 2017-01-04 20:36:47 +13:00
parent fb4559bfa3
commit e3644ca507
19 changed files with 219 additions and 221 deletions

View file

@ -458,7 +458,7 @@ void showBatteryPage(void)
uint8_t rowIndex = PAGE_TITLE_LINE_COUNT;
if (feature(FEATURE_VBAT)) {
tfp_sprintf(lineBuffer, "Volts: %d.%1d Cells: %d", vbat / 10, vbat % 10, batteryCellCount);
tfp_sprintf(lineBuffer, "Volts: %d.%1d Cells: %d", getVbat() / 10, getVbat() % 10, batteryCellCount);
padLineBuffer();
i2c_OLED_set_line(rowIndex++);
i2c_OLED_send_string(lineBuffer);