Browse Source

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.
mission-4.1.18
rmackay9 12 years ago committed by Andrew Tridgell
parent
commit
90d7f00965
  1. 2
      libraries/AP_GPS/AP_GPS_MTK19.cpp

2
libraries/AP_GPS/AP_GPS_MTK19.cpp

@ -257,7 +257,6 @@ AP_GPS_MTK19::_detect(uint8_t data)
case 4: case 4:
step++; step++;
if (ck_a != data) { if (ck_a != data) {
Serial.print_P(PSTR("wrong ck_a\n"));
step = 0; step = 0;
} }
break; break;
@ -266,7 +265,6 @@ AP_GPS_MTK19::_detect(uint8_t data)
if (ck_b == data) { if (ck_b == data) {
return true; return true;
} }
Serial.print_P(PSTR("wrong ck_b\n"));
break; break;
} }
return false; return false;

Loading…
Cancel
Save