Copter: toymode: correct static-vs-singleton compilation error

This commit is contained in:
Peter Barker 2018-08-07 22:51:34 +10:00 committed by Andrew Tridgell
parent eba8dee371
commit 62d0bc986a

View File

@ -715,7 +715,7 @@ void ToyMode::trim_update(void)
}
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;
return;
}