mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
PX4IO Firmware: bug fix in variable initialization
This commit is contained in:
parent
97e8ec9551
commit
20f5de33df
@ -282,9 +282,11 @@ controls_tick()
|
||||
|
||||
perf_end(c_gather_ppm);
|
||||
|
||||
bool dsm_updated = false, st24_updated = false, sumd_updated = false;
|
||||
|
||||
if (!((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_SBUS) || (r_status_flags & PX4IO_P_STATUS_FLAGS_RC_PPM))) {
|
||||
perf_begin(c_gather_dsm);
|
||||
bool dsm_updated, st24_updated, sumd_updated;
|
||||
|
||||
(void)dsm_port_input(&rssi, &dsm_updated, &st24_updated, &sumd_updated);
|
||||
|
||||
if (dsm_updated) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user