File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ export default class BoardConfiguration {
165
165
* @param {function } createDeviceCb used to create the device associated to the user
166
166
*/
167
167
configure ( compiledSketch , board , createDeviceCb ) {
168
+ this . daemon . initUpload ( ) ;
168
169
this . configuring . next ( { status : this . CONFIGURE_IN_PROGRESS , msg : 'Uploading provisioning sketch...' } ) ;
169
170
if ( ! this . daemon . channelOpen . getValue ( ) ) {
170
171
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 {
236
237
this . configuring . next ( { status : this . CONFIGURE_ERROR , err : `Couldn't configure board at port ${ board . port } . Upload failed with error: ${ upload . err } ` } ) ;
237
238
} ) ;
238
239
239
- this . daemon . initUpload ( ) ;
240
240
this . uploadSketch ( compiledSketch , board ) ;
241
241
}
242
242
}
You can’t perform that action at this time.
0 commit comments