Skip to content

Commit c4165cb

Browse files
committed
Set rxBufferSize before starting UART.
1 parent 62d689a commit c4165cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ void beginUART2()
239239
//Assign UART2 interrupts to the core 0. See: https://github.com/espressif/arduino-esp32/issues/3386
240240
void pinUART2Task( void *pvParameters )
241241
{
242-
serialGNSS.begin(settings.dataPortBaud); //UART2 on pins 16/17 for SPP. The ZED-F9P will be configured to output NMEA over its UART1 at the same rate.
243242
serialGNSS.setRxBufferSize(SERIAL_SIZE_RX);
244243
serialGNSS.setTimeout(50);
244+
serialGNSS.begin(settings.dataPortBaud); //UART2 on pins 16/17 for SPP. The ZED-F9P will be configured to output NMEA over its UART1 at the same rate.
245245

246246
uart2pinned = true;
247247

0 commit comments

Comments
 (0)