From e1b91359465b0aa5128a0277d77e36b92db556c6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Mar 2014 14:40:50 +1100 Subject: [PATCH] Copter: updates for new RCInput API --- ArduCopter/radio.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/radio.pde b/ArduCopter/radio.pde index 5badfa63d5..69be8781cb 100644 --- a/ArduCopter/radio.pde +++ b/ArduCopter/radio.pde @@ -99,7 +99,7 @@ void output_min() static void read_radio() { static uint32_t last_update = 0; - if (hal.rcin->valid_channels() > 0) { + if (hal.rcin->new_input()) { last_update = millis(); ap.new_radio_frame = true; uint16_t periods[8];