Skip to content

Commit

Permalink
Reduce the delay to 500 milliseconds.
Browse files Browse the repository at this point in the history
Might be even less, but for sure this is better than 5 seconds.

Closes: #60

Change-type: patch
Signed-off-by: Lisandro Pérez Meyer <[email protected]>
  • Loading branch information
perezmeyer authored and vipulgupta2048 committed Sep 5, 2023
1 parent f41a837 commit 1961af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/features/sd-mux/implementations/sdwire/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export class SdWire implements SdMux {
console.log('Switching SD card to host');
await execAsync('sd-mux-ctrl --ts -v 0');
// it can take some time before the mux is toggled - so just to be sure, we can add some delay here
await delay(5000);
await delay(500);
} else if(state === 'dut'){
console.log('Switching SD card to DUT');
await execAsync('sd-mux-ctrl --dut -v 0');
// it can take some time before the mux is toggled - so just to be sure, we can add some delay here
await delay(5000);
await delay(500);
}
}

Expand Down

0 comments on commit 1961af2

Please sign in to comment.