fix pwm_out,dshot: set _num_outputs to 5 for mode_pwm5

This commit is contained in:
Beat Küng
2020-08-03 18:07:55 +02:00
parent 78e918ff3a
commit 002e671d3f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ DShotOutput::set_mode(Mode mode)
/* default output rates */
_output_mask = 0x1f;
_outputs_initialized = false;
_num_outputs = 4;
_num_outputs = 5;
break;
+1 -1
View File
@@ -213,7 +213,7 @@ int PWMOut::set_mode(Mode mode)
_pwm_alt_rate_channels = 0;
_pwm_mask = 0x1f;
_pwm_initialized = false;
_num_outputs = 4;
_num_outputs = 5;
break;