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

Update RX & Battery OLED pages.

RX page shows up to 14 channels.
Battery page shows current and capacity information.
This commit is contained in:
Dominic Clifton 2014-11-13 01:29:07 +00:00
parent 8661849a5f
commit f5a0f9d3b2
10 changed files with 124 additions and 47 deletions

View file

@ -229,15 +229,15 @@ void annexCode(void)
vbatCycleTime += cycleTime;
if (!(++vbatTimer % VBATFREQ)) {
if (feature(FEATURE_VBAT)) {
updateBatteryVoltage();
if (feature(FEATURE_VBAT)) {
updateBatteryVoltage();
batteryWarningEnabled = shouldSoundBatteryAlarm();
}
}
if (feature(FEATURE_CURRENT_METER)) {
updateCurrentMeter(vbatCycleTime);
}
vbatCycleTime = 0;
if (feature(FEATURE_CURRENT_METER)) {
updateCurrentMeter(vbatCycleTime);
}
vbatCycleTime = 0;
}
}