File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,14 @@ function resetConnection() {
245
245
CONFIGURATOR . cliEngineValid = false ;
246
246
CONFIGURATOR . cliEngineActive = false ;
247
247
248
+ // Clear connection timestamp
249
+ connectionTimestamp = null ;
250
+ setTimeout ( ( ) => {
251
+ if ( window . vm ?. CONNECTION ) {
252
+ window . vm . CONNECTION . timestamp = null ;
253
+ }
254
+ } , 100 ) ;
255
+
248
256
// unlock port select & baud
249
257
PortHandler . portPickerDisabled = false ;
250
258
}
@@ -678,14 +686,6 @@ function onConnect() {
678
686
function onClosed ( result ) {
679
687
gui_log ( i18n . getMessage ( result ? "serialPortClosedOk" : "serialPortClosedFail" ) ) ;
680
688
681
- // Clear connection timestamp
682
- connectionTimestamp = null ;
683
- setTimeout ( ( ) => {
684
- if ( window . vm ?. CONNECTION ) {
685
- window . vm . CONNECTION . timestamp = null ;
686
- }
687
- } , 100 ) ;
688
-
689
689
$ ( "#tabs ul.mode-connected" ) . hide ( ) ;
690
690
$ ( "#tabs ul.mode-connected-cli" ) . hide ( ) ;
691
691
$ ( "#tabs ul.mode-disconnected" ) . show ( ) ;
You can’t perform that action at this time.
0 commit comments