Skip to content

Commit 304c7a0

Browse files
Device is now disconnected after getting details (#263)
1 parent cc982cd commit 304c7a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nanoFirmwareFlasher.Library/NanoDeviceOperations.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
////
1+
////
22
// Copyright (c) .NET Foundation and Contributors
33
// See LICENSE file in the project root for full license information.
44
////
@@ -54,7 +54,7 @@ public ObservableCollection<NanoDeviceBase> ListDevices(bool getDeviceDetails)
5454
{
5555
_ = device.DebugEngine.Connect(
5656
false,
57-
true);
57+
false);
5858

5959
// check that we are in CLR
6060
if (device.DebugEngine.IsConnectedTonanoCLR)
@@ -82,6 +82,8 @@ public ObservableCollection<NanoDeviceBase> ListDevices(bool getDeviceDetails)
8282
// no need to report this, just move on
8383
}
8484
}
85+
86+
device.Disconnect(true);
8587
}
8688
}
8789

0 commit comments

Comments
 (0)