mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
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:
parent
811550cca6
commit
90d7f00965
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user