From 1961af24461903596905f69cdb65bc4315a0faf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lisandro=20Dami=C3=A1n=20Nicanor=20P=C3=A9rez=20Meyer?= Date: Tue, 5 Sep 2023 16:21:45 -0300 Subject: [PATCH] Reduce the delay to 500 milliseconds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/features/sd-mux/implementations/sdwire/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/sd-mux/implementations/sdwire/index.ts b/lib/features/sd-mux/implementations/sdwire/index.ts index 4f4f650..e3b6d70 100644 --- a/lib/features/sd-mux/implementations/sdwire/index.ts +++ b/lib/features/sd-mux/implementations/sdwire/index.ts @@ -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); } }