From 7317f9e3a70bd2681ba06f9de3f256287f023e49 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Mon, 23 Nov 2015 23:44:50 +0100 Subject: [PATCH] frontend: use 1200 BPS for handshake by default It's not much slower but makes frequency measurement and calibration more reliable. --- stcgal/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stcgal/frontend.py b/stcgal/frontend.py index 5e4e189..c41ff08 100644 --- a/stcgal/frontend.py +++ b/stcgal/frontend.py @@ -144,7 +144,7 @@ def cli(): parser.add_argument("-P", "--protocol", help="protocol version", choices=["stc89", "stc12a", "stc12", "stc15a", "stc15"], default="stc12") parser.add_argument("-p", "--port", help="serial port device", default="/dev/ttyUSB0") parser.add_argument("-b", "--baud", help="transfer baud rate (default: 19200)", type=BaudType(), default=19200) - parser.add_argument("-l", "--handshake", help="handshake baud rate (default: 2400)", type=BaudType(), default=2400) + parser.add_argument("-l", "--handshake", help="handshake baud rate (default: 1200)", type=BaudType(), default=1200) parser.add_argument("-o", "--option", help="set option (can be used multiple times)", action="append") parser.add_argument("-t", "--trim", help="RC oscillator frequency in kHz (STC15 series only)", type=float, default=0.0) parser.add_argument("-D", "--debug", help="enable debug output", action="store_true")