mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 06:13:35 +08:00
Board drivers: Move to 0-based index
This commit is contained in:
@@ -306,7 +306,7 @@ PX4FMU::~PX4FMU()
|
||||
}
|
||||
|
||||
/* clean up the alternate device node */
|
||||
unregister_class_devname(PWM_OUTPUT_DEVICE_PATH, _class_instance);
|
||||
unregister_class_devname(PWM_OUTPUT_BASE_DEVICE_PATH, _class_instance);
|
||||
|
||||
g_fmu = nullptr;
|
||||
}
|
||||
@@ -325,7 +325,7 @@ PX4FMU::init()
|
||||
return ret;
|
||||
|
||||
/* try to claim the generic PWM output device node as well - it's OK if we fail at this */
|
||||
_class_instance = register_class_devname(PWM_OUTPUT_DEVICE_PATH);
|
||||
_class_instance = register_class_devname(PWM_OUTPUT_BASE_DEVICE_PATH);
|
||||
|
||||
if (_class_instance == CLASS_DEVICE_PRIMARY) {
|
||||
log("default PWM output device");
|
||||
|
||||
Reference in New Issue
Block a user