From 6347cac7259c6e7219c806df00afe974b25d8567 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sat, 11 May 2024 10:45:15 +0200 Subject: [PATCH] added disabled symlink flag to serial - set it to false for now --- freedata_server/serial_ports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"))