Copter: updates for new RCInput API

This commit is contained in:
Andrew Tridgell 2014-03-25 14:40:50 +11:00
parent 843318f58c
commit e1b9135946

View File

@ -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];