Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adafruit_featherwing/gps_featherwing.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GPSFeatherWing:
"""Class representing an `Ultimate GPS FeatherWing
<https://www.adafruit.com/product/3133>`_.

Automatically uses the feather's I2C bus."""
Automatically uses the feather's UART bus."""
def __init__(self, update_period=1000, baudrate=9600):
"""
:param int update_period: (Optional) The amount of time in milliseconds between
Expand All @@ -57,8 +57,8 @@ def __init__(self, update_period=1000, baudrate=9600):
self._uart = busio.UART(shared.TX, shared.RX, baudrate=baudrate, timeout=timeout)
self._gps = adafruit_gps.GPS(self._uart, debug=False)
# Turn on the basic GGA and RMC info
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')
self._gps.send_command(b'PMTK220,{}'.format(update_period))
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'))
self._gps.send_command(bytes('PMTK220,{}'.format(update_period), 'utf-8'))

def update(self):
"""
Expand Down