mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Fix missing cfg_pms.version (#12695)
This commit is contained in:
parent
bf613e4ea6
commit
fea097a893
1 changed files with 3 additions and 0 deletions
|
@ -521,9 +521,11 @@ static void ubloxSendNAV5Message(uint8_t model)
|
|||
|
||||
ubloxSendConfigMessage(&tx_buffer, MSG_CFG_NAV_SETTINGS, sizeof(ubxCfgNav5_t));
|
||||
}
|
||||
|
||||
static void ubloxSendPowerMode(void)
|
||||
{
|
||||
ubxMessage_t tx_buffer;
|
||||
tx_buffer.payload.cfg_pms.version = 0;
|
||||
tx_buffer.payload.cfg_pms.powerSetupValue = !gpsConfig()->gps_ublox_full_power;
|
||||
tx_buffer.payload.cfg_pms.period = 0;
|
||||
tx_buffer.payload.cfg_pms.onTime = 0;
|
||||
|
@ -531,6 +533,7 @@ static void ubloxSendPowerMode(void)
|
|||
tx_buffer.payload.cfg_pms.reserved1[1] = 0;
|
||||
ubloxSendConfigMessage(&tx_buffer, MSG_CFG_PMS, sizeof(ubxCfgPms_t));
|
||||
}
|
||||
|
||||
static void ubloxSetMessageRate(uint8_t messageClass, uint8_t messageID, uint8_t rate)
|
||||
{
|
||||
ubxMessage_t tx_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue