mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 14:21:36 +08:00
NuttX 10.3+ upgrade (#20190)
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com> Co-authored-by: David Sidrane <David.Sidrane@NscDg.com> Co-authored-by: alexklimaj <alex@arkelectron.com>
This commit is contained in:
co-authored by
Peter van der Perk
David Sidrane
alexklimaj
parent
45b390b0bf
commit
2cb4ef0629
@@ -286,7 +286,7 @@ static void mavlink_usb_check(void *arg)
|
||||
#if defined(CONFIG_SERIAL_PASSTHRU_UBLOX)
|
||||
speed_t baudrate = cfgetspeed(&uart_config);
|
||||
char baudstring[16];
|
||||
snprintf(baudstring, sizeof(baudstring), "%d", baudrate);
|
||||
snprintf(baudstring, sizeof(baudstring), "%ld", baudrate);
|
||||
static const char *gps_argv[] {"gps", "stop", nullptr};
|
||||
|
||||
static const char *passthru_argv[] {"serial_passthru", "start", "-t", "-b", baudstring, "-e", USB_DEVICE_PATH, "-d", SERIAL_PASSTHRU_UBLOX_DEV, nullptr};
|
||||
|
||||
@@ -514,7 +514,6 @@ static int at24c_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
|
||||
ret = at24c_eraseall(priv);
|
||||
break;
|
||||
|
||||
case MTDIOC_XIPBASE:
|
||||
default:
|
||||
ret = -ENOTTY; /* Bad command */
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user