mirror of
				https://github.com/We-Dont-Byte/Mind_Reader.git
				synced 2025-02-04 10:38:42 +00:00 
			
		
		
		
	Add error notification, bump version number
This commit is contained in:
		@@ -388,7 +388,7 @@ let hub: HubManager | null = null;
 | 
			
		||||
 | 
			
		||||
// TODO: port option
 | 
			
		||||
async function connectHub(): Promise<void> {
 | 
			
		||||
  if (hub) {
 | 
			
		||||
  if (hub && hub.isOpen()) {
 | 
			
		||||
    vscode.window.showWarningMessage('LEGO Hub is already connected, reconnecting...');
 | 
			
		||||
    disconnectHub();
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
import * as vscode from 'vscode';
 | 
			
		||||
import * as SerialPort from 'serialport';
 | 
			
		||||
import * as fs from 'fs';
 | 
			
		||||
 | 
			
		||||
@@ -97,6 +98,7 @@ export default class HubManager {
 | 
			
		||||
              logger.error(Buffer.from(params[3], 'base64').toString());
 | 
			
		||||
              break;
 | 
			
		||||
          }
 | 
			
		||||
          vscode.window.showErrorMessage("Program Error.")
 | 
			
		||||
        }
 | 
			
		||||
      } catch (err) {
 | 
			
		||||
        console.log('Could not parse JSON:', msg);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user