Skip to content
Snippets Groups Projects
Commit 1ca6583d authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AP_BoardConfig: restore /dev/vroutput change from Emile

my mistake, sorry Emile!
parent be51a687
No related branches found
No related tags found
No related merge requests found
......@@ -121,9 +121,9 @@ void AP_BoardConfig::init()
if (_pwm_count > 8) _pwm_count.set(8);
if (_pwm_count < 0) _pwm_count.set(0);
int fd = open("/dev/px4fmu", 0);
int fd = open("/dev/vroutput", 0);
if (fd == -1) {
hal.scheduler->panic("Unable to open /dev/px4fmu");
hal.scheduler->panic("Unable to open /dev/vroutput");
}
if (ioctl(fd, PWM_SERVO_SET_COUNT, _pwm_count.get()) != 0) {
hal.console->printf("RCOutput: Unable to setup alt PWM to %u channels\n", _pwm_count.get());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment