mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 21:23:33 +08:00
[DO NOT MERGE] px4_i2c_device_external hacks
This commit is contained in:
@@ -108,7 +108,7 @@ protected:
|
||||
*/
|
||||
int transfer(const uint8_t *send, const unsigned send_len, uint8_t *recv, const unsigned recv_len);
|
||||
|
||||
bool external() const override { return px4_i2c_bus_external(_device_id.devid_s.bus); }
|
||||
bool external() const override { return px4_i2c_device_external(_device_id.devid); }
|
||||
|
||||
private:
|
||||
static unsigned int _bus_clocks[PX4_NUMBER_I2C_BUSES];
|
||||
|
||||
@@ -104,7 +104,7 @@ protected:
|
||||
*/
|
||||
int transfer(const uint8_t *send, const unsigned send_len, uint8_t *recv, const unsigned recv_len);
|
||||
|
||||
virtual bool external() const override { return px4_i2c_bus_external(_device_id.devid_s.bus); }
|
||||
virtual bool external() const override { return px4_i2c_device_external(_device_id.devid); }
|
||||
|
||||
private:
|
||||
int _fd{-1};
|
||||
|
||||
Reference in New Issue
Block a user