gsender icon indicating copy to clipboard operation
gsender copied to clipboard

Ignore USB vendor/product ID casing in device list

Open dymk opened this issue 5 months ago • 1 comments

On macOS, USB product/vendor IDs are lower-case hex encoded strings. This change implements case-insensitive comparison for product and vendor IDs, ensuring that recognized devices (such as ESP32) appear correctly under the "Recognized Devices" section.

A new caseInsensitiveIncludes function has been added to perform case-insensitive checks on array values. The port recognition logic now uses this function to compare product and vendor IDs, accommodating both upper and lower case hex strings.

image.png

dymk avatar Sep 21 '24 18:09 dymk