From 9359591ef01793cece239ebf516a1f31a2835c5d Mon Sep 17 00:00:00 2001 From: rcooke-warwick Date: Thu, 23 May 2024 10:24:35 +0100 Subject: [PATCH] add delay after jetson flash finishes Change-type: patch Signed-off-by: Ryan Cooke --- lib/flashing/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/flashing/index.ts b/lib/flashing/index.ts index 58e6291..a4c4cde 100644 --- a/lib/flashing/index.ts +++ b/lib/flashing/index.ts @@ -503,6 +503,8 @@ async function flashJetson(filename: string, autoKit: Autokit, deviceType: strin throw new Error(`Failed during jetson-flash container run: ${err.message}`) } + const nvmePowerOnDelay = Number(process.env.CAP_DELAY) || 1000 + await delay(nvmePowerOnDelay) if(nvme){ // wait for jetson to power off