Skip to content

Commit

Permalink
Always print serial number when unable to find a device with specific…
Browse files Browse the repository at this point in the history
… serial number (#164)

Previously it would not print the serial number if a device wasn't found after a -f reboot (see https://forums.raspberrypi.com/viewtopic.php?t=378682)
  • Loading branch information
will-v-pi authored Nov 7, 2024
1 parent 0f9977e commit dc9b549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3581,7 +3581,7 @@ string missing_device_string(bool wasRetry, bool requires_rp2350 = false) {
}
} else if (settings.bus != -1) {
snprintf(buf, buf_len, "accessible %s devices in BOOTSEL mode were found found on bus %d.", device_name, settings.bus);
} else if (!settings.ser.empty() && !wasRetry) {
} else if (!settings.ser.empty()) {
snprintf(buf, buf_len, "accessible %s devices in BOOTSEL mode were found found with serial number %s.", device_name, settings.ser.c_str());
} else {
snprintf(buf, buf_len, "accessible %s devices in BOOTSEL mode were found.", device_name);
Expand Down

0 comments on commit dc9b549

Please sign in to comment.