We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c580d commit f4845e6Copy full SHA for f4845e6
shields/lib/L76GNSS.py
@@ -113,7 +113,7 @@ def _checksum(self, nmeadata):
113
calc_cksum = 0
114
for s in nmeadata:
115
calc_cksum ^= ord(s)
116
- return('{:X}'.format(calc_cksum))
+ return('{:02X}'.format(calc_cksum))
117
118
def write(self, data):
119
self.i2c.writeto(GPS_I2CADDR, '${}*{}\r\n'.format(data, self._checksum(data)) )
0 commit comments