mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 07:33:34 +08:00
Made HMC bus-agnostic
This commit is contained in:
@@ -60,6 +60,11 @@ protected:
|
||||
*/
|
||||
unsigned _retries;
|
||||
|
||||
/**
|
||||
* The I2C bus number the device is attached to.
|
||||
*/
|
||||
int _bus;
|
||||
|
||||
/**
|
||||
* @ Constructor
|
||||
*
|
||||
@@ -123,7 +128,6 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
int _bus;
|
||||
uint16_t _address;
|
||||
uint32_t _frequency;
|
||||
struct i2c_dev_s *_dev;
|
||||
|
||||
Reference in New Issue
Block a user