mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -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
2da0ef4183
commit
ce63d7a77a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user