From df1193ab35ae36272846b37d3b336613155f6b28 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 1 Aug 2017 11:20:00 +0200 Subject: [PATCH] implement read for Serial --- src/escpos/printer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/escpos/printer.py b/src/escpos/printer.py index b658efb..5102890 100644 --- a/src/escpos/printer.py +++ b/src/escpos/printer.py @@ -154,6 +154,10 @@ class Serial(Escpos): :type msg: bytes """ 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): """ Close Serial interface """