Skip to content

Commit 20442dd

Browse files
author
Stefania
authored
Merge pull request #26 from arduino/fix-provisioning
Fix provisioning
2 parents 03998ae + a2e4f57 commit 20442dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "1.0.2",
3+
"version": "1.0.3",
44
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
55
"main": "./src/index.js",
66
"module": "es/index.js",

src/boardConfiguration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export default class BoardConfiguration {
165165
* @param {function} createDeviceCb used to create the device associated to the user
166166
*/
167167
configure(compiledSketch, board, createDeviceCb) {
168+
this.daemon.initUpload();
168169
this.configuring.next({ status: this.CONFIGURE_IN_PROGRESS, msg: 'Uploading provisioning sketch...' });
169170
if (!this.daemon.channelOpen.getValue()) {
170171
const errorMessage = `Couldn't configure board at port ${board.port} because we there is no open channel to the Arduino Create Plugin.`;
@@ -236,7 +237,6 @@ export default class BoardConfiguration {
236237
this.configuring.next({ status: this.CONFIGURE_ERROR, err: `Couldn't configure board at port ${board.port}. Upload failed with error: ${upload.err}` });
237238
});
238239

239-
this.daemon.initUpload();
240240
this.uploadSketch(compiledSketch, board);
241241
}
242242
}

0 commit comments

Comments
 (0)