From 9a14541e2febf19be1f61d57f3a3d586166e9b9b Mon Sep 17 00:00:00 2001 From: jgyates Date: Fri, 10 Nov 2023 10:03:00 -0500 Subject: [PATCH] V1.19.00 --- genmonlib/controller.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/genmonlib/controller.py b/genmonlib/controller.py index 91431fdd..7999bf81 100644 --- a/genmonlib/controller.py +++ b/genmonlib/controller.py @@ -3303,11 +3303,6 @@ def Close(self): except: pass - if self.ModBus != None: - try: - self.ModBus.Close() - except: - pass try: if self.EnableDebug: self.KillThread("DebugThread") @@ -3329,6 +3324,13 @@ def Close(self): except: pass + if self.ModBus != None: + try: + if self.ControllerSelected.lower() == "h_100": + time.sleep(0.5) + self.ModBus.Close() + except: + pass except Exception as e1: self.LogErrorLine("Error Closing Controller: " + str(e1))