mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL: added get_bus_id_devtype()
used to do versioning on device types
This commit is contained in:
parent
104e29acf2
commit
1990aa96e1
@ -193,6 +193,13 @@ public:
|
||||
return d.devid;
|
||||
}
|
||||
|
||||
/**
|
||||
* return bus ID with a new devtype
|
||||
*/
|
||||
uint32_t get_bus_id_devtype(uint8_t devtype) {
|
||||
return change_bus_id(get_bus_id(), devtype);
|
||||
}
|
||||
|
||||
protected:
|
||||
uint8_t _read_flag = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user