IMPROVE use sendall instead of send in network-printer
This commit is contained in:
parent
020ba4145c
commit
9159aafd18
|
@ -167,7 +167,7 @@ class Network(Escpos):
|
||||||
|
|
||||||
:param msg: arbitrary code to be printed
|
:param msg: arbitrary code to be printed
|
||||||
"""
|
"""
|
||||||
self.device.send(msg)
|
self.device.sendall(msg)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
""" Close TCP connection """
|
""" Close TCP connection """
|
||||||
|
|
Loading…
Reference in New Issue