Skip to content

Commit

Permalink
Start iterating the baud rates from the first one
Browse files Browse the repository at this point in the history
  • Loading branch information
hkicko committed Sep 19, 2022
1 parent 2300ef2 commit 71f3b71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions libraries/OnBoardGPS/src/GPS_Air530.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void Air530Class::begin(uint32_t baud)
pinMode(_powerCtl,OUTPUT);
digitalWrite(_powerCtl, LOW);

int i = 0;
int i = bauds_array - 1;
//String cmd="$PGKC147,"+(String)baud;

String cmd="$PGKC149,0,"+(String)baud;
Expand Down Expand Up @@ -404,8 +404,8 @@ String Air530Class::getGLL()


/*
* WGS-84: international standard GPS coordinate£¨Google Earth¡¢ GPS module¡¢Tian Map£©
* GCJ-02: China coordinate migration standard, Google Map¡¢Gaode Map¡¢Tencent map
* WGS-84: international standard GPS coordinate��Google Earth�� GPS module��Tian Map��
* GCJ-02: China coordinate migration standard, Google Map��Gaode Map��Tencent map
* BD-09: Baidu coordinate offset standard, Baidu Map
*/

Expand Down
2 changes: 1 addition & 1 deletion libraries/OnBoardGPS/src/GPS_Air530Z.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void Air530ZClass::begin(uint32_t baud)
pinMode(_powerCtl,OUTPUT);
digitalWrite(_powerCtl, LOW);

int i = 0;
int i = bauds_array - 1;
GPSSerial.begin(bauds[i]);
String temp = "";

Expand Down

0 comments on commit 71f3b71

Please sign in to comment.