Skip to content

Commit

Permalink
minor change in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jul 22, 2024
1 parent ad49918 commit b1bf844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/usb-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ async function reopenInNormalMode(device, { reset } = {}) {
try {
device = await openDeviceById(id);
if (device.isInDfuMode) {
await device.close(); // Should this be device.reset()???
await device.close(); // Should this be device.reset()?
} else {
// check if we can communicate with the device
if (device.isOpen) {
Expand Down Expand Up @@ -520,7 +520,7 @@ async function waitForDeviceToReboot(deviceId) {
try {
await _delay(REBOOT_INTERVAL_MSEC);
const device = await reopenDevice({ id: deviceId });
// Waiting for any control request to work to ensure the device is ready
// Check device readiness
await device.getDeviceId();
return device;
} catch (error) {
Expand Down

0 comments on commit b1bf844

Please sign in to comment.