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