use const char ptr instead of non-const in string literal parameters
This commit is contained in:
parent
3b48046a6e
commit
91d1657f31
|
|
@ -247,7 +247,7 @@ void Adafruit_GPS::begin(uint16_t baud)
|
|||
delay(10);
|
||||
}
|
||||
|
||||
void Adafruit_GPS::sendCommand(char *str) {
|
||||
void Adafruit_GPS::sendCommand(const char *str) {
|
||||
if(gpsSwSerial) gpsSwSerial->println(str);
|
||||
else gpsHwSerial->println(str);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,9 @@ class Adafruit_GPS {
|
|||
char *lastNMEA(void);
|
||||
boolean newNMEAreceived();
|
||||
void common_init(void);
|
||||
void sendCommand(char *);
|
||||
|
||||
void sendCommand(const char *);
|
||||
|
||||
void pause(boolean b);
|
||||
|
||||
boolean parseNMEA(char *response);
|
||||
|
|
|
|||
Loading…
Reference in New Issue