From adb1a4cf2b8d01e8bb5a960c8f8e2ad2844e8a5d Mon Sep 17 00:00:00 2001 From: keeramis Date: Wed, 8 May 2024 08:34:47 -0700 Subject: [PATCH] Check for asset name and hash during asset searching process --- src/cmd/serial.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/serial.js b/src/cmd/serial.js index b4bc29264..bc1874f9a 100644 --- a/src/cmd/serial.js +++ b/src/cmd/serial.js @@ -27,7 +27,9 @@ const cmd = path.basename(process.argv[1]); const arrow = chalk.green('>'); const timeoutError = 'Serial timed out'; -const availability = (asset, availableAssets) => availableAssets.some(availableAsset => availableAsset.hash === asset.hash); +const availability = (asset, availableAssets) => availableAssets.some( + availableAsset => availableAsset.hash === asset.hash && availableAsset.name === asset.name +); const SERIAL_PORT_DEFAULTS = { baudRate: 9600,