From 8765219910c95d0712ac0b2c27d33fd7a21fe3b8 Mon Sep 17 00:00:00 2001 From: Hector Fernandez Date: Mon, 14 Sep 2020 17:40:45 +0200 Subject: IGEP0048: Solved PLC test error. The PLC MAC address can be changed now. --- test-cli/test/helpers/plc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test-cli/test/helpers/plc.py') diff --git a/test-cli/test/helpers/plc.py b/test-cli/test/helpers/plc.py index b1ec382..c9ef774 100644 --- a/test-cli/test/helpers/plc.py +++ b/test-cli/test/helpers/plc.py @@ -36,7 +36,7 @@ class dcpPLC(object): def setPLCReset(self): self.__nRest = gpio('75', 'out', '0') self.__nRest = gpio('69', 'out', '0') - time.sleep(0.25) + time.sleep(1) self.__nRest = gpio('69', 'out', '1') self.__nRest = gpio('75', 'out', '1') @@ -58,7 +58,7 @@ class dcpPLC(object): return False, "set var failed {} {}".format(var,Error.exit_code) return True, '' - def set_plc2 (self, var1, value1,var2, value2, password): + def set_plc2 (self, var1, value1, var2, value2, password): try: res = self.__myConfigTool("-o", "SET", "-p", "{}={}".format(var1, value1), "-p", "{}={}".format(var2, value2), "-w", "{}".format(password)) print(res) -- cgit v1.1