AP_HAL: added get_bus_id_devtype()

used to do versioning on device types
This commit is contained in:
Andrew Tridgell 2016-11-05 10:00:11 +11:00
parent 104e29acf2
commit 1990aa96e1

View File

@ -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;