X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fcore%2Fao_gps_report_mega.c;h=5e3c71bfa309e1ecb6f3fecb954dde596ff12283;hp=d13885dd8cc5581c01d2a15718a730184289bd29;hb=bb9fdef607728cc326a82aa632e59724f272e53b;hpb=2a9b0cdff5db03dc11b6ef69cf5436c834c3acc4 diff --git a/src/core/ao_gps_report_mega.c b/src/core/ao_gps_report_mega.c index d13885dd..5e3c71bf 100644 --- a/src/core/ao_gps_report_mega.c +++ b/src/core/ao_gps_report_mega.c @@ -24,7 +24,6 @@ ao_gps_report_mega(void) static __xdata struct ao_log_mega gps_log; static __xdata struct ao_telemetry_location gps_data; static __xdata struct ao_telemetry_satellite gps_tracking_data; - uint8_t date_reported = 0; uint8_t new; uint8_t c, n, i; @@ -71,6 +70,8 @@ ao_gps_report_mega(void) { gps_log.u.gps_sat.sats[i].c_n = gps_tracking_data.sats[c].c_n_1; i++; + if (i >= 12) + break; } gps_log.u.gps_sat.channels = i; ao_log_mega(&gps_log);