ProjectController.py
changeset 4036 102555078a0c
parent 4032 1ffff67678ad
child 4043 b217fb367574
equal deleted inserted replaced
4035:c317fc64035e 4036:102555078a0c
  1918         if self._connector is None:
  1918         if self._connector is None:
  1919             # Oups.
  1919             # Oups.
  1920             self.logger.write_error(_("Connection failed to %s!\n") % uri)
  1920             self.logger.write_error(_("Connection failed to %s!\n") % uri)
  1921         else:
  1921         else:
  1922             VersionsInfoBytes = self._connector.ExtendedCall("GetVersions", bytes())
  1922             VersionsInfoBytes = self._connector.ExtendedCall("GetVersions", bytes())
  1923             VersionsInfo = VersionsInfoBytes.decode()
  1923             if VersionsInfoBytes is not None:
  1924             self.logger.write(f"Version string: {VersionsInfo}\n")
  1924                 VersionsInfo = VersionsInfoBytes.decode()
       
  1925                 self.logger.write(f"Version string: {VersionsInfo}\n")
  1925             self.CompareLocalAndRemotePLC()
  1926             self.CompareLocalAndRemotePLC()
  1926 
  1927 
  1927             # Init with actual PLC status and print it
  1928             # Init with actual PLC status and print it
  1928             self.UpdateMethodsFromPLCStatus()
  1929             self.UpdateMethodsFromPLCStatus()
  1929             if self.previous_plcstate in [PlcStatus.Started, PlcStatus.Stopped]:
  1930             if self.previous_plcstate in [PlcStatus.Started, PlcStatus.Stopped]: