Skip to content

Commit d9cafdf

Browse files
committed
workaround: Fix dfu_root tree not cleaning up on successive probes
1 parent dc29075 commit d9cafdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ void libusbClose() {
4242
}
4343

4444
void dfuProbeDevices() {
45+
dfu_root = NULL;
4546
probe_devices(ctx);
4647
}

0 commit comments

Comments
 (0)