mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
px4io: don't call io_set_rc_config when rc config disabled
This commit is contained in:
parent
7dae3abac9
commit
3bad8131cf
@ -1078,8 +1078,10 @@ PX4IO::task_main()
|
||||
param_set(dsm_bind_param, &dsm_bind_val);
|
||||
}
|
||||
|
||||
/* re-upload RC input config as it may have changed */
|
||||
io_set_rc_config();
|
||||
if (!_rc_handling_disabled) {
|
||||
/* re-upload RC input config as it may have changed */
|
||||
io_set_rc_config();
|
||||
}
|
||||
|
||||
/* re-set the battery scaling */
|
||||
int32_t voltage_scaling_val = 10000;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user