mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:13:34 +08:00
Introduce enum / define for multiple devices
This commit is contained in:
@@ -510,6 +510,9 @@ private:
|
|||||||
} // namespace device
|
} // namespace device
|
||||||
|
|
||||||
// class instance for primary driver of each class
|
// class instance for primary driver of each class
|
||||||
#define CLASS_DEVICE_PRIMARY 0
|
enum CLASS_DEVICE {
|
||||||
|
CLASS_DEVICE_PRIMARY=0,
|
||||||
|
CLASS_DEVICE_SECONDARY=1
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* _DEVICE_DEVICE_H */
|
#endif /* _DEVICE_DEVICE_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user