Skip to content

Commit 0da4cb7

Browse files
committed
Fixed bug where _write was called on a serial port instead of write
1 parent 1954894 commit 0da4cb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xbee/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ def _write(self, data):
6060
"""
6161
_write: binary data -> None
6262
63-
Packages the given binary data in an API frame and _writes the
63+
Packages the given binary data in an API frame and writes the
6464
result to the serial port
6565
"""
66-
self.serial._write(APIFrame(data).output())
66+
self.serial.write(APIFrame(data).output())
6767

6868
def run(self):
6969
"""

0 commit comments

Comments
 (0)