RAK-815 GPS now kinda works (must update associated libs). comms to it

still a bit yucky
This commit is contained in:
geeksville
2020-07-10 20:17:20 -07:00
parent 9d3ca0d0f9
commit ed6b89b3b1
3 changed files with 8271 additions and 10 deletions

View File

@@ -17,8 +17,7 @@ HardwareSerial *GPS::_serial_gps = NULL;
#endif
#ifdef GPS_I2C_ADDRESS
uint8_t GPS::i2cAddress = 0;
// FIXME - no good - GPS_I2C_ADDRESS;
uint8_t GPS::i2cAddress = GPS_I2C_ADDRESS;
#else
uint8_t GPS::i2cAddress = 0;
#endif
@@ -73,7 +72,7 @@ void perhapsSetRTC(struct tm &t)
// DEBUG_MSG("Got time from GPS month=%d, year=%d, unixtime=%ld\n", t.tm_mon, t.tm_year, tv.tv_sec);
if (t.tm_year < 0 || t.tm_year >= 300)
DEBUG_MSG("Ignoring invalid GPS time\n");
DEBUG_MSG("Ignoring invalid GPS month=%d, year=%d, unixtime=%ld\n", t.tm_mon, t.tm_year, tv.tv_sec);
else
perhapsSetRTC(&tv);
}