Skip to content

Commit 6272e23

Browse files
committed
[S1] Change gps port default baudrate ti 38400
1 parent b51ef61 commit 6272e23

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/driver/gps/gps_ubx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ static void gps_probe_entry(void* parameter)
530530

531531
if (i >= CONFIGURE_RETRY_MAX) {
532532
set_baudrate(ubx_decoder.ubx_dev, prev_baudrate);
533-
printf("UBX-GPS not detected on %s, swith back to default baudrate %d.\n", ubx_decoder.ubx_dev->parent.name, prev_baudrate);
533+
printf("UBX-GPS configure failed on %s, swith back to default baudrate %d.\n", ubx_decoder.ubx_dev->parent.name, prev_baudrate);
534534

535535
/* If configure failed, skip configure step and just wait pvt msg. since some ublox gps doesn't support ubx configure */
536536
ubx_decoder.use_nav_pvt = true;

target/sieon/s1/drivers/drv_usart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/* config for serial_configure structure */
3333
#define SERIAL3_DEFAULT_CONFIG \
3434
{ \
35-
BAUD_RATE_115200, /* 115200 bits/s */ \
35+
BAUD_RATE_38400, /* 38400 bits/s */ \
3636
DATA_BITS_8, /* 8 databits */ \
3737
STOP_BITS_1, /* 1 stopbit */ \
3838
PARITY_NONE, /* No parity */ \
@@ -44,7 +44,7 @@
4444

4545
#define SERIAL4_DEFAULT_CONFIG \
4646
{ \
47-
BAUD_RATE_115200, /* 115200 bits/s */ \
47+
BAUD_RATE_38400, /* 38400 bits/s */ \
4848
DATA_BITS_8, /* 8 databits */ \
4949
STOP_BITS_1, /* 1 stopbit */ \
5050
PARITY_NONE, /* No parity */ \

0 commit comments

Comments
 (0)