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
parent 2da0ef4183
commit ce63d7a77a

View File

@ -223,7 +223,7 @@ AP_GPS_MTK16::_detect(uint8_t data)
case 4:
step++;
if (ck_a != data) {
Serial.printf("wrong ck_a\n");
Serial.print_P(PSTR("wrong ck_a\n"));
step = 0;
}
break;
@ -232,7 +232,7 @@ AP_GPS_MTK16::_detect(uint8_t data)
if (ck_b == data) {
return true;
}
Serial.printf("wrong ck_b\n");
Serial.print_P(PSTR("wrong ck_b\n"));
break;
}
return false;