Fix warning about deprecated cast from string to char *.

This commit is contained in:
Larry 2014-10-19 11:31:07 +13:00
parent 4348639804
commit c85ca305f9
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ uint8_t Adafruit_GPS::parseHex(char c) {
return 0; return 0;
} }
boolean Adafruit_GPS::waitForSentence(char *wait4me, uint8_t max) { boolean Adafruit_GPS::waitForSentence(const char *wait4me, uint8_t max) {
char str[20]; char str[20];
uint8_t i=0; uint8_t i=0;

View File

@ -140,7 +140,7 @@ class Adafruit_GPS {
boolean fix; boolean fix;
uint8_t fixquality, satellites; uint8_t fixquality, satellites;
boolean waitForSentence(char *wait, uint8_t max = MAXWAITSENTENCE); boolean waitForSentence(const char *wait, uint8_t max = MAXWAITSENTENCE);
boolean LOCUS_StartLogger(void); boolean LOCUS_StartLogger(void);
boolean LOCUS_StopLogger(void); boolean LOCUS_StopLogger(void);
boolean LOCUS_ReadStatus(void); boolean LOCUS_ReadStatus(void);