Skip to content

Commit

Permalink
Fix missing cfg_pms.version (betaflight#12695)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveCEvans authored and davidbitton committed Feb 5, 2024
1 parent 7600d26 commit c5a5fba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/io/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,16 +521,19 @@ 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;
tx_buffer.payload.cfg_pms.reserved1[0] = 0;
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;
Expand Down

0 comments on commit c5a5fba

Please sign in to comment.