diff --git a/package.json b/package.json index b697fead..5f937a34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.4.0", + "version": "2.4.1", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js", diff --git a/src/firmware-updater.js b/src/firmware-updater.js index fb3b821c..0aae219b 100644 --- a/src/firmware-updater.js +++ b/src/firmware-updater.js @@ -209,7 +209,7 @@ export default class FirmwareUpdater { hex: '', extra: { auth: { - password: `${this.loaderPath} -firmware ${this.firmwareVersionData.Path} ${addresses}`, + password: `"${this.loaderPath}" -firmware "${this.firmwareVersionData.Path}" ${addresses}`, }, }, signature: isUsingAvrdude ? signaturesEnum.UPLOAD_FIRMWARE_AVRDUDE : signaturesEnum.UPLOAD_FIRMWARE_BOSSAC,