Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync backend-team with master #319

Merged
merged 13 commits into from Apr 7, 2020
Merged
15 changes: 15 additions & 0 deletions hardware/CommunicationsPi/radio_transceiver.py
Expand Up @@ -22,6 +22,21 @@ def __init__(self, log_file_name=None, port=None):
self.port_intf = None
self.port_serial_number = None
self.find_port()
else:
port_info = next(
(
p
for p in serial.tools.list_ports.comports()
if p.device == self.port
),
{},
)
self.port_vid = port_info.vid
self.port_pid = port_info.pid
self.port_vendor = port_info.manufacturer
self.port_intf = port_info.interface
self.port_serial_number = port_info.serial_number
self.find_port()

baudrate = 9600
parity = serial.PARITY_NONE
Expand Down