Skip to content

Commit 8a21056

Browse files
committed
Set buffer size before starting serial.
Follow up of the IDF update
1 parent b0fe0eb commit 8a21056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ bool Gps::setMessageInterval(UBX_MSG msgId, uint8_t seconds, bool waitForAck) {
267267
*/
268268
bool Gps::setBaud() {
269269
mSerial.end();
270-
mSerial.begin(115200, SERIAL_8N1);
271270
mSerial.setRxBufferSize(512);
271+
mSerial.begin(115200, SERIAL_8N1);
272272
while(mSerial.read() >= 0) ;
273273

274274
if (checkCommunication()) {

0 commit comments

Comments
 (0)