mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
PX4IO Firmware: bug fix in variable initialization
This commit is contained in:
committed by
Lorenz Meier
parent
97e8ec9551
commit
20f5de33df
@@ -282,9 +282,11 @@ controls_tick()
|
|||||||
|
|
||||||
perf_end(c_gather_ppm);
|
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))) {
|
if (!((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_SBUS) || (r_status_flags & PX4IO_P_STATUS_FLAGS_RC_PPM))) {
|
||||||
perf_begin(c_gather_dsm);
|
perf_begin(c_gather_dsm);
|
||||||
bool dsm_updated, st24_updated, sumd_updated;
|
|
||||||
(void)dsm_port_input(&rssi, &dsm_updated, &st24_updated, &sumd_updated);
|
(void)dsm_port_input(&rssi, &dsm_updated, &st24_updated, &sumd_updated);
|
||||||
|
|
||||||
if (dsm_updated) {
|
if (dsm_updated) {
|
||||||
|
|||||||
Reference in New Issue
Block a user