mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
Copter: toymode: correct static-vs-singleton compilation error
This commit is contained in:
parent
eba8dee371
commit
62d0bc986a
@ -715,7 +715,7 @@ void ToyMode::trim_update(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint16_t chan[4];
|
uint16_t chan[4];
|
||||||
if (RC_Channels::get_radio_in(chan, 4) != 4) {
|
if (rc().get_radio_in(chan, 4) != 4) {
|
||||||
trim.start_ms = 0;
|
trim.start_ms = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user