[chirp_devel] [PATCH] Add option for hardware flow control (rtscts) for Radio drivers, defaults to off
Tom Hayward
Thu Mar 15 15:08:40 PDT 2012
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1331849254 21600
# Node ID 74a1811fdcb6a778a879393cccdf5052bbd70df7
# Parent 4b28a898abc415eee561a358875f6298c1387573
Add option for hardware flow control (rtscts) for Radio drivers, defaults to off.
diff -r 4b28a898abc4 -r 74a1811fdcb6 chirp/chirp_common.py
--- a/chirp/chirp_common.py Wed Mar 14 17:38:34 2012 -0600
+++ b/chirp/chirp_common.py Thu Mar 15 16:07:34 2012 -0600
@@ -760,6 +760,7 @@
class Radio:
BAUD_RATE = 9600
+ HARDWARE_FLOW = False
VENDOR = "Unknown"
MODEL = "Unknown"
VARIANT = ""
diff -r 4b28a898abc4 -r 74a1811fdcb6 chirpui/mainapp.py
--- a/chirpui/mainapp.py Wed Mar 14 17:38:34 2012 -0600
+++ b/chirpui/mainapp.py Thu Mar 15 16:07:34 2012 -0600
@@ -622,6 +622,7 @@
try:
ser = serial.Serial(port=settings.port,
baudrate=settings.radio_class.BAUD_RATE,
+ rtscts=settings.radio_class.HARDWARE_FLOW,
timeout=0.25)
ser.flushInput()
except serial.SerialException, e:
@@ -655,6 +656,7 @@
try:
ser = serial.Serial(port=settings.port,
baudrate=radio.BAUD_RATE,
+ rtscts=radio.HARDWARE_FLOW,
timeout=0.25)
ser.flushInput()
except serial.SerialException, e:
More information about the chirp_devel
mailing list