mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Clean up pull request #108 from @Airmamaf.
This commit is contained in:
parent
df5a61b433
commit
1b47d3cbae
7 changed files with 67 additions and 62 deletions
|
@ -255,8 +255,8 @@ void gpsInitUblox(void)
|
|||
if (gpsData.messageState == GPS_MESSAGE_STATE_INIT) {
|
||||
|
||||
if (gpsData.state_position < sizeof(ubloxInit)) {
|
||||
//Either use specific config file for GPS or let dynamically upload config
|
||||
if( gpsConfig->gpsAutoConfig == GPS_AUTOCONFIG_ON ) {
|
||||
//Either use specific config file for GPS or let dynamically upload config
|
||||
if( gpsConfig->gpsAutoConfig == GPS_AUTOCONFIG_ON ) {
|
||||
serialWrite(gpsPort, ubloxInit[gpsData.state_position]);
|
||||
}
|
||||
gpsData.state_position++;
|
||||
|
@ -268,9 +268,9 @@ void gpsInitUblox(void)
|
|||
|
||||
if (gpsData.messageState == GPS_MESSAGE_STATE_SBAS) {
|
||||
if (gpsData.state_position < UBLOX_SBAS_MESSAGE_LENGTH) {
|
||||
//Either use specific config file for GPS or let dynamically upload config
|
||||
if( gpsConfig->gpsAutoConfig == GPS_AUTOCONFIG_ON ) {
|
||||
serialWrite(gpsPort, ubloxSbas[gpsConfig->sbasMode].message[gpsData.state_position]);
|
||||
//Either use specific config file for GPS or let dynamically upload config
|
||||
if( gpsConfig->gpsAutoConfig == GPS_AUTOCONFIG_ON ) {
|
||||
serialWrite(gpsPort, ubloxSbas[gpsConfig->sbasMode].message[gpsData.state_position]);
|
||||
}
|
||||
gpsData.state_position++;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue