Browse Source

HAL_Linux: don't do chardev test on subtype NONE

otherwise replay is broken
master
Andrew Tridgell 10 years ago
parent
commit
c8a6a02be1
  1. 2
      libraries/AP_HAL_Linux/I2CDriver.cpp

2
libraries/AP_HAL_Linux/I2CDriver.cpp

@ -31,8 +31,10 @@ LinuxI2CDriver::LinuxI2CDriver(AP_HAL::Semaphore* semaphore, const char *device) @@ -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…
Cancel
Save