# HG changeset patch # User Andrey Skvortsov # Date 1481128093 -10800 # Node ID 1445457547f79274683eac99f41969f09210ae18 # Parent 0e4182e9cc098e540b2eda60f0d41bc31c16c076 update PLC status after initialization This is necessary especially if existed PLC program is loaded, but PLC is not started automatically. In this case taskbar icon shows that PLC isn't empty. diff -r 0e4182e9cc09 -r 1445457547f7 Beremiz_service.py --- a/Beremiz_service.py Wed Dec 07 19:25:58 2016 +0300 +++ b/Beremiz_service.py Wed Dec 07 19:28:13 2016 +0300 @@ -445,6 +445,7 @@ if self.plcobj.GetPLCstatus()[0] != "Empty": if self.autostart : self.plcobj.StartPLC() + self.plcobj.StatusChange() sys.stdout.flush()