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