Skip to content

Commit acba76b

Browse files
committed
Bug fix/unit/gps: tx and rx pin exchange
1 parent d66a614 commit acba76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

m5stack/libs/unit/gps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def __init__(self, port):
2121
self.course = "0.0"
2222
self.uart = UART(1, tx=port[1], rx=port[0])
2323
self.uart.init(9600, bits=0, parity=None, stop=1, rxbuf=1024)
24-
self.tx = port[0]
25-
self.rx = port[1]
24+
self.tx = port[1]
25+
self.rx = port[0]
2626
self._timer = timTh.addTimer(50, timTh.PERIODIC, self._monitor)
2727
self._state = ""
2828
self.time_offset = 8

0 commit comments

Comments
 (0)