From c7621f92b0466acd0897e185611aac16bbe816ec Mon Sep 17 00:00:00 2001 From: jasonshort Date: Mon, 28 Mar 2011 05:18:10 +0000 Subject: [PATCH] git-svn-id: https://arducopter.googlecode.com/svn/trunk@1824 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/ArduCopterMega.pde | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArduCopterMega/ArduCopterMega.pde b/ArduCopterMega/ArduCopterMega.pde index 958a5fc5a8..715fa46572 100644 --- a/ArduCopterMega/ArduCopterMega.pde +++ b/ArduCopterMega/ArduCopterMega.pde @@ -524,7 +524,11 @@ void medium_loop() case 0: medium_loopCounter++; - //update_GPS(); + + if(Serial1.available() > 0){ + update_GPS(); + } + //readCommands(); if(g.compass_enabled){ @@ -777,10 +781,6 @@ void super_slow_loop() void update_GPS(void) { - if(Serial1.available() == 0){ - return; - } - g_gps->update(); update_GPS_light();