File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export default class BoardConfiguration {
117
117
const notBefore = new Date ( compressedCert . not_before ) ;
118
118
const notAfter = new Date ( compressedCert . not_after ) ;
119
119
// eslint-disable-next-line prefer-template
120
- const answers = board . id + '\n' +
120
+ const answers = board . deviceId + '\n' +
121
121
notBefore . getUTCFullYear ( ) + '\n' +
122
122
( notBefore . getUTCMonth ( ) + 1 ) + '\n' +
123
123
notBefore . getUTCDate ( ) + '\n' +
@@ -220,7 +220,8 @@ export default class BoardConfiguration {
220
220
msg : `Couldn't configure board at port ${ board . port } . Configuration failed with error: ${ reason . message } ` ,
221
221
err : reason . toString ( )
222
222
} ) )
223
- . finally ( ( ) => this . daemon . closeSerialMonitor ( board . port , BAUDRATE ) ) ;
223
+ // We are using a timer because we can't close the serial monitor immediately and we have to wait the sketch to finish.
224
+ . finally ( ( ) => timer ( 3000 ) . subscribe ( ( ) => this . daemon . closeSerialMonitor ( board . port , BAUDRATE ) ) ) ;
224
225
} , error => {
225
226
this . configuring . next ( {
226
227
status : this . CONFIGURE_ERROR ,
You can’t perform that action at this time.
0 commit comments