added disabled symlink flag to serial - set it to false for now

This commit is contained in:
DJ2LS 2024-05-11 10:45:15 +02:00
parent 1d31d85f90
commit 6347cac725

View file

@ -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"))