-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Currently the code reads:
async toggleMux(state: string): Promise<void> {
if(state === 'host'){
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);
} 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);
}
}SDWire takes just a few milliseconds to switch. If the delay is expressed in milliseconds I would say reduce that to 500.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels