Skip to content

Commit 9b88065

Browse files
authored
Merge pull request #31 from jerryneedell/jerryn_gps
fix bytearray usage in gps_featherwing.py
2 parents 0a783b2 + 0be92e0 commit 9b88065

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_featherwing/gps_featherwing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GPSFeatherWing:
3939
"""Class representing an `Ultimate GPS FeatherWing
4040
<https://www.adafruit.com/product/3133>`_.
4141
42-
Automatically uses the feather's I2C bus."""
42+
Automatically uses the feather's UART bus."""
4343
def __init__(self, update_period=1000, baudrate=9600):
4444
"""
4545
:param int update_period: (Optional) The amount of time in milliseconds between
@@ -57,8 +57,8 @@ def __init__(self, update_period=1000, baudrate=9600):
5757
self._uart = busio.UART(shared.TX, shared.RX, baudrate=baudrate, timeout=timeout)
5858
self._gps = adafruit_gps.GPS(self._uart, debug=False)
5959
# Turn on the basic GGA and RMC info
60-
self._gps.send_command(b'PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0')
61-
self._gps.send_command(b'PMTK220,{}'.format(update_period))
60+
self._gps.send_command(bytes('PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', 'utf-8'))
61+
self._gps.send_command(bytes('PMTK220,{}'.format(update_period), 'utf-8'))
6262

6363
def update(self):
6464
"""

0 commit comments

Comments
 (0)