1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

Merge branch 'development' into feature/newlines

This commit is contained in:
Patrick Kanzler
2017-08-01 11:20:14 +02:00
committed by GitHub

View File

@@ -154,6 +154,10 @@ class Serial(Escpos):
:type msg: bytes :type msg: bytes
""" """
self.device.write(msg) self.device.write(msg)
def _read(self):
""" Reads a data buffer and returns it to the caller. """
return self.device.read(16)
def close(self): def close(self):
""" Close Serial interface """ """ Close Serial interface """