Fixed defaults for serial

This commit is contained in:
Manuel F Martinez 2012-09-24 19:42:32 -07:00
parent 3760788cfe
commit 085e45057b
1 changed files with 2 additions and 2 deletions

View File

@ -69,12 +69,12 @@ class Usb(Escpos):
class Serial(Escpos):
""" Define Serial printer """
def __init__(self, devfile="/dev/ttyUSB0", baudrate=9600, bytesize=8, timeout=5):
def __init__(self, devfile="/dev/ttyS0", baudrate=9600, bytesize=8, timeout=1):
"""
@param devfile : Device file under dev filesystem
@param baudrate : Baud rate for serial transmission
@param timeout : Read/Write timeout
@param bytesize : Serial buffer size
@param timeout : Read/Write timeout
"""
self.devfile = devfile
self.baudrate = baudrate