예제 #1
0
파일: lax.py 프로젝트: noguxun/misc
    def pre_cmd_act(self):
        # reset the port if last command is more than 10 seconds ago
        #  device could be rebooted
        now = time.time()
        if int(now - self.last_cmd_time) > 10:
            result = laxcmd.reset_port()
            print("Reset the port");

        self.last_cmd_time = now
예제 #2
0
    def pre_cmd_act(self):
        # reset the port if last command is more than 10 seconds ago
        #  device could be rebooted
        now = time.time()
        if int(now - self.last_cmd_time) > 10:
            result = laxcmd.reset_port()
            print("Reset the port")

        self.last_cmd_time = now
예제 #3
0
 def act_reset(self):
     self.log_clear()
     print("Resetting Port ....")
     result = laxcmd.reset_port()
     print("Resetting Done!")
     self.log("port reset" + " " + self.error_msg(result))
예제 #4
0
파일: lax.py 프로젝트: noguxun/misc
 def act_reset(self):
     self.log_clear()
     print("Resetting Port ....")
     result = laxcmd.reset_port()
     print("Resetting Done!")
     self.log("port reset" + " " + self.error_msg(result) )