-
- Downloads
i2c_posix: fix use of wrong device path
previously, get_devname() was used as the I2C device path, but on NuttX, get_devname() is the device file which the driver creates. This patch changes it, so the sematics are the same as on NuttX: both now use _bus to decide to which I2C bus device to talk to. I did not see any other use-cases than the led on ocpoc.
Showing
- posix-configs/ocpoc/px4.config 1 addition, 1 deletionposix-configs/ocpoc/px4.config
- src/drivers/boards/ocpoc/board_config.h 0 additions, 1 deletionsrc/drivers/boards/ocpoc/board_config.h
- src/drivers/device/i2c_posix.cpp 7 additions, 11 deletionssrc/drivers/device/i2c_posix.cpp
- src/drivers/drv_led.h 0 additions, 4 deletionssrc/drivers/drv_led.h
Loading
Please register or sign in to comment