From 1da798e9dc22ab6615506390b691a12d5dda05b2 Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 12 May 2021 19:02:07 +0200 Subject: [PATCH] - stop communication if device already exists --- Mystify/MainModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mystify/MainModel.cs b/Mystify/MainModel.cs index 2f5ef15..961fbd1 100644 --- a/Mystify/MainModel.cs +++ b/Mystify/MainModel.cs @@ -50,6 +50,8 @@ namespace Mystify public void LoadDriverAndDevice(string driverPath) { + _device?.StopCommunication(); + IDriver? driver = _driverLoader.Load(driverPath); if (driver == null)