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:
parent
8661849a5f
commit
f5a0f9d3b2
10 changed files with 124 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue