diff --git a/freedata_server/serial_ports.py b/freedata_server/serial_ports.py index 98a20e77..8c3a8ef9 100644 --- a/freedata_server/serial_ports.py +++ b/freedata_server/serial_ports.py @@ -2,10 +2,10 @@ import serial.tools.list_ports import crcengine def get_ports(): - crc_algorithm = crcengine.new("crc16-ccitt-false") # load crc8 library + crc_algorithm = crcengine.new("crc16-ccitt-false") # load crc16 library serial_devices = [] - ports = serial.tools.list_ports.comports() + ports = serial.tools.list_ports.comports(include_links=False) for port, desc, hwid in ports: # calculate hex of hwid if we have unique names crc_hwid = crc_algorithm(bytes(hwid, encoding="utf-8"))