From 76d7d9bf26d17d06cc2b26350f56120ded17f8c6 Mon Sep 17 00:00:00 2001 From: Louis Orleans Date: Sun, 10 Sep 2017 21:31:13 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Being=20more=20specific=20with?= =?UTF-8?q?=20board=20identity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flasher/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flasher/commands.js b/flasher/commands.js index 83e015a6a2..6292e5e647 100644 --- a/flasher/commands.js +++ b/flasher/commands.js @@ -29,7 +29,7 @@ async function Upload (keymap, path, right = false) { } Echo(`Building for ${board.name} (${board.path})`); - await Flash(keymap, board.path, right); + await Flash(keymap, board, right); } module.exports.Upload = Upload; @@ -41,9 +41,9 @@ async function Build (keymap, path, right = false) { } module.exports.Build = Build; -async function Flash (keymap, path, right = false) { +async function Flash (keymap, board, right = false) { Echo(`Flashing ${right ? 'right' : 'left'}`); - await Exec(`dfu-util --path ${path} -D .build/ergodox_infinity_default.bin`); + await Exec(`dfu-util --device ${board.id} --path ${board.path} -D .build/ergodox_infinity_default.bin`); Echo(`Flashed ${right ? 'right' : 'left'}`, ''); } module.exports.Flash = Flash;