From 051e869a01218195b764ed2ccbcb1501d55ef95e Mon Sep 17 00:00:00 2001 From: RoKu-HTS <139958900+RoKu-HTS@users.noreply.github.com> Date: Wed, 19 Jul 2023 10:48:03 +0200 Subject: [PATCH] Also look for devices from Nordic Semiconductor ASA in order to find nRF52840 Dongle The nRF52840 Dongle shows as manufactured by Nordic Semiconductor ASA on Windows, thus also look for device of that manufacturer --- src/common/platform/win/serial_port_enum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/platform/win/serial_port_enum.cpp b/src/common/platform/win/serial_port_enum.cpp index f41c1ae06..3ea3abd90 100755 --- a/src/common/platform/win/serial_port_enum.cpp +++ b/src/common/platform/win/serial_port_enum.cpp @@ -123,7 +123,7 @@ std::list EnumSerialPorts() dhGetValue(L"%s", &manu, objDevice, L".Manufacturer"); if ((strcmp("SEGGER", manu) == 0) || (_stricmp("arm", manu) == 0) || - (_stricmp("mbed", manu) == 0)) + (_stricmp("mbed", manu) == 0) || (_stricmp("Nordic Semiconductor ASA", manu) == 0 )) { char *next_token = NULL; auto comname = strtok_s(match, "()", &next_token);