From 90d7f00965ee5082fdc7fad6741c56ff5f71d4d3 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Sun, 16 Dec 2012 16:21:53 +0900 Subject: [PATCH] AP_GPS_MTK16: saved 22 bytes of ram by moving error message into program space. Perhaps there's no point in writing an error message to a console that likely nobody will be viewing anyway. --- libraries/AP_GPS/AP_GPS_MTK19.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_MTK19.cpp b/libraries/AP_GPS/AP_GPS_MTK19.cpp index 7e873cce55..a697c1670a 100644 --- a/libraries/AP_GPS/AP_GPS_MTK19.cpp +++ b/libraries/AP_GPS/AP_GPS_MTK19.cpp @@ -257,7 +257,6 @@ AP_GPS_MTK19::_detect(uint8_t data) case 4: step++; if (ck_a != data) { - Serial.print_P(PSTR("wrong ck_a\n")); step = 0; } break; @@ -266,7 +265,6 @@ AP_GPS_MTK19::_detect(uint8_t data) if (ck_b == data) { return true; } - Serial.print_P(PSTR("wrong ck_b\n")); break; } return false;