Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Jun 3, 2021
1 parent eec2efb commit bf829f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf829f2

Please sign in to comment.