diff --git a/main/ugv_io_gps.cc b/main/ugv_io_gps.cc index 4ad4f84..7514c95 100644 --- a/main/ugv_io_gps.cc +++ b/main/ugv_io_gps.cc @@ -63,7 +63,7 @@ void UART_GPS::Init() { ESP_LOGE(TAG, "uart_param_config: %d", ret); return; } - uart_set_pin(GPS_UART, GPS_UART_TX_PIN, GPS_UART_TX_PIN, UART_PIN_NO_CHANGE, + uart_set_pin(GPS_UART, GPS_UART_TX_PIN, GPS_UART_RX_PIN, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE); ret = uart_driver_install(GPS_UART, GPS_UART_RX_BUF_SIZE, GPS_UART_TX_BUF_SIZE, GPS_UART_QUEUE_SIZE, NULL, 0);