mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Update PG version numbers
This commit is contained in:
parent
ba4587e949
commit
c97c8998b1
4 changed files with 5 additions and 5 deletions
|
@ -124,7 +124,7 @@ PG_RESET_TEMPLATE(pilotConfig_t, pilotConfig,
|
|||
.name = { 0 }
|
||||
);
|
||||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(systemConfig_t, systemConfig, PG_SYSTEM_CONFIG, 0);
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(systemConfig_t, systemConfig, PG_SYSTEM_CONFIG, 1);
|
||||
|
||||
#ifndef USE_OSD_SLAVE
|
||||
#if defined(STM32F4) && !defined(DISABLE_OVERCLOCK)
|
||||
|
|
|
@ -87,7 +87,7 @@ static batteryState_e consumptionState;
|
|||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_NONE
|
||||
#endif
|
||||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(batteryConfig_t, batteryConfig, PG_BATTERY_CONFIG, 1);
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(batteryConfig_t, batteryConfig, PG_BATTERY_CONFIG, 2);
|
||||
|
||||
PG_RESET_TEMPLATE(batteryConfig_t, batteryConfig,
|
||||
// voltage
|
||||
|
@ -265,7 +265,7 @@ void batteryUpdateStates(timeUs_t currentTimeUs)
|
|||
batteryState = MAX(voltageState, consumptionState);
|
||||
}
|
||||
|
||||
lowVoltageCutoff_t *getLowVoltageCutoff(void)
|
||||
const lowVoltageCutoff_t *getLowVoltageCutoff(void)
|
||||
{
|
||||
return &lowVoltageCutoff;
|
||||
}
|
||||
|
|
|
@ -87,4 +87,4 @@ int32_t getMAhDrawn(void);
|
|||
|
||||
void batteryUpdateCurrentMeter(timeUs_t currentTimeUs);
|
||||
|
||||
lowVoltageCutoff_t *getLowVoltageCutoff(void);
|
||||
const lowVoltageCutoff_t *getLowVoltageCutoff(void);
|
||||
|
|
|
@ -118,7 +118,7 @@ static void gyroInitSensorFilters(gyroSensor_t *gyroSensor);
|
|||
#define GYRO_SYNC_DENOM_DEFAULT 4
|
||||
#endif
|
||||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 0);
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 1);
|
||||
|
||||
PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig,
|
||||
.gyro_align = ALIGN_DEFAULT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue