From 085e45057b2157fa5c43015945afe2453c16103f Mon Sep 17 00:00:00 2001 From: Manuel F Martinez Date: Mon, 24 Sep 2012 19:42:32 -0700 Subject: [PATCH] Fixed defaults for serial --- printer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printer.py b/printer.py index dc76d99..dd5aa93 100644 --- a/printer.py +++ b/printer.py @@ -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