mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added disabled symlink flag to serial - set it to false for now
This commit is contained in:
parent
1d31d85f90
commit
6347cac725
1 changed files with 2 additions and 2 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue