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.
This commit is contained in:
rmackay9 2012-12-16 16:21:53 +09:00 committed by Andrew Tridgell
parent 811550cca6
commit 90d7f00965

View File

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