Skip to content

Commit

Permalink
V1.19.00
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Nov 10, 2023
1 parent bccf0cd commit 9a14541
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions genmonlib/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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))

Expand Down

0 comments on commit 9a14541

Please sign in to comment.