Skip to content

Commit

Permalink
add hub address to uhubctl again
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Ryan Cooke <[email protected]>
  • Loading branch information
rcooke-warwick committed Dec 18, 2023
1 parent 7d06076 commit fc62fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/flashing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ async function flashIotGate(filename: string, autoKit: Autokit, port: string, dr
await delay(5 * 1000);

// power on the USB - but ensure it is powered off first - this way we ensure we get the device in a fresh state
await toggleUsb(false, port);
await toggleUsb(false, port, `1-1`);
await delay(5*1000);
await toggleUsb(true, port);
await toggleUsb(true, port, `1-1`);
await delay(5*1000);


Expand Down Expand Up @@ -568,7 +568,7 @@ async function flashIotGate(filename: string, autoKit: Autokit, port: string, dr
});

// simulate unplugging of the USB programming cable
await toggleUsb(false, port);
await toggleUsb(false, port, `1-1`);
await delay(5*1000);

await autoKit.power.off();
Expand Down

0 comments on commit fc62fc7

Please sign in to comment.