From bf829f22ab15ac27c82094a0d6135699c4a125e7 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Thu, 3 Jun 2021 16:13:26 -0500 Subject: [PATCH] oops --- main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 930caa5..8eb0634 100644 --- a/main.cpp +++ b/main.cpp @@ -1978,9 +1978,7 @@ static int reboot_device(libusb_device *device, bool bootsel, uint disable_mask= void reboot_command::execute(device_map &devices) { if (settings.force) { - // cannot - uint disable_mask = settings.reboot_usb ? 1 : 0; // this is bit 0 for the USB drive - reboot_device(devices[dr_vidpid_stdio_usb][0].first, disable_mask); + reboot_device(devices[dr_vidpid_stdio_usb][0].first, settings.reboot_usb); } else { // not exclusive, because restoring un-exclusive could fail; also if we're rebooting, we don't much