mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 18:48:30 -04:00
HAL_Linux: don't do chardev test on subtype NONE
otherwise replay is broken
This commit is contained in:
parent
0679552cf7
commit
c8a6a02be1
@ -31,8 +31,10 @@ LinuxI2CDriver::LinuxI2CDriver(AP_HAL::Semaphore* semaphore, const char *device)
|
||||
{
|
||||
_device = strdup(device);
|
||||
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_LINUX_NONE
|
||||
if (!((LinuxUtil*)hal.util)->is_chardev_node(_device))
|
||||
hal.scheduler->panic("I2C device is not a chardev node");
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Match a given device by the prefix its devpath, i.e. the path returned by
|
||||
|
Loading…
Reference in New Issue
Block a user