delete unused PWM_SERVO_SET_COUNT

This commit is contained in:
Daniel Agar
2021-01-25 10:55:57 -05:00
parent f9e07337f8
commit 2ff69a4456
3 changed files with 0 additions and 111 deletions
-54
View File
@@ -726,60 +726,6 @@ int DShot::pwm_ioctl(file *filp, const int cmd, const unsigned long arg)
break;
case PWM_SERVO_SET_COUNT: {
/*
* Change the number of outputs that are enabled for
* PWM. This is used to change the split between GPIO
* and PWM under control of the flight config
* parameters.
*/
switch (arg) {
case 0:
set_mode(MODE_NONE);
break;
case 1:
set_mode(MODE_1PWM);
break;
case 2:
set_mode(MODE_2PWM);
break;
case 3:
set_mode(MODE_3PWM);
break;
case 4:
set_mode(MODE_4PWM);
break;
case 5:
set_mode(MODE_5PWM);
break;
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >=6
case 6:
set_mode(MODE_6PWM);
break;
#endif
#if defined(BOARD_HAS_PWM) && BOARD_HAS_PWM >=8
case 8:
set_mode(MODE_8PWM);
break;
#endif
default:
ret = -EINVAL;
break;
}
break;
}
case PWM_SERVO_SET_MODE: {
switch (arg) {
case PWM_SERVO_MODE_NONE: