diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-03 13:46:34 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-09 22:56:22 +0100 |
commit | fac158f7e5d794fa55be5585419f65f54dd43683 (patch) | |
tree | e7bef168240b24de95d20aa22afb9c38b3d0316e /src/drivers/px4io/px4io.cpp | |
parent | 2bf00922827c4873c9a50d740e5c646665d2b4cb (diff) | |
download | px4-firmware-fac158f7e5d794fa55be5585419f65f54dd43683.tar.gz px4-firmware-fac158f7e5d794fa55be5585419f65f54dd43683.tar.bz2 px4-firmware-fac158f7e5d794fa55be5585419f65f54dd43683.zip |
Board drivers: Move to 0-based index
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 7845f8bf8..f8599ca57 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -830,7 +830,7 @@ PX4IO::init() } /* try to claim the generic PWM output device node as well - it's OK if we fail at this */ - ret = register_driver(PWM_OUTPUT_DEVICE_PATH, &fops, 0666, (void *)this); + ret = register_driver(PWM_OUTPUT0_DEVICE_PATH, &fops, 0666, (void *)this); if (ret == OK) { log("default PWM output device"); @@ -1080,7 +1080,7 @@ out: /* clean up the alternate device node */ if (_primary_pwm_device) - unregister_driver(PWM_OUTPUT_DEVICE_PATH); + unregister_driver(PWM_OUTPUT0_DEVICE_PATH); /* tell the dtor that we are exiting */ _task = -1; |