Skip to content

Commit 95383da

Browse files
authored
use double quotes in programmer field (#458)
* use double quotes in programmer field By using double quotes in the programmer field the path does not get split by the agent in case of a whitespace * 2.4.2
1 parent 8355fba commit 95383da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arduino-create-agent-js-client",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/firmware-updater.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default class FirmwareUpdater {
205205
const data = {
206206
board: boardId,
207207
port,
208-
commandline: `"{runtime.tools.fwupdater.path}/${updaterBinaryName}" -flasher {network.password} -port {serial.port} -restore_binary "{build.path}/{build.project_name}.bin" -programmer ${programmer}`,
208+
commandline: `"{runtime.tools.fwupdater.path}/${updaterBinaryName}" -flasher {network.password} -port {serial.port} -restore_binary "{build.path}/{build.project_name}.bin" -programmer "${programmer}"`,
209209
hex: '',
210210
extra: {
211211
auth: {

0 commit comments

Comments
 (0)