clang
This commit is contained in:
parent
59c1a4acbd
commit
fdda5b6e1e
|
|
@ -385,8 +385,8 @@ char Adafruit_GPS::read(void) {
|
|||
_buff_idx++;
|
||||
} else {
|
||||
// refill the buffer!
|
||||
if (gpsI2C->requestFrom((uint8_t)0x10, (uint8_t)GPS_MAX_I2C_TRANSFER, (uint8_t) true) ==
|
||||
GPS_MAX_I2C_TRANSFER) {
|
||||
if (gpsI2C->requestFrom((uint8_t)0x10, (uint8_t)GPS_MAX_I2C_TRANSFER,
|
||||
(uint8_t) true) == GPS_MAX_I2C_TRANSFER) {
|
||||
// got data!
|
||||
_buff_max = 0;
|
||||
char curr_char = 0;
|
||||
|
|
|
|||
|
|
@ -782,9 +782,10 @@ bool Adafruit_GPS::parseTime(char *p) {
|
|||
seconds = (time % 100);
|
||||
char *dec = strchr(p, '.');
|
||||
char *comstar = min(strchr(p, ','), strchr(p, '*'));
|
||||
if(dec != NULL && comstar != NULL && dec < comstar)
|
||||
if (dec != NULL && comstar != NULL && dec < comstar)
|
||||
milliseconds = atof(p) * 1000;
|
||||
else milliseconds = 0;
|
||||
else
|
||||
milliseconds = 0;
|
||||
lastTime = sentTime;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue