Skip to content

Commit 0a6828c

Browse files
authored
Fixed example code
1 parent 4952641 commit 0a6828c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,19 @@ An implementation of this can be found in examples/gps_simpletest.py
5858
RX = board.RX
5959
TX = board.TX
6060
61-
uart = busio.UART(TX, RX, baudrate=9600, timeout=3000)
61+
uart = busio.UART(TX, RX, baudrate=9600, timeout=30)
6262
6363
gps = adafruit_gps.GPS(uart, debug=False)
6464
6565
gps.send_command(b'PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0')
6666
6767
gps.send_command(b'PMTK220,1000')
6868
69+
last_print = time.monotonic()
6970
while True:
70-
71+
7172
gps.update()
72-
73+
7374
current = time.monotonic()
7475
if current - last_print >= 1.0:
7576
last_print = current

0 commit comments

Comments
 (0)