From 7365700b72f06e7766a2f0b3792ca15ee1754666 Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Sat, 5 Nov 2016 18:00:41 +0200 Subject: [PATCH] cleanup --- src/ModbusMaster.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ModbusMaster.php b/src/ModbusMaster.php index 400e211..a754724 100644 --- a/src/ModbusMaster.php +++ b/src/ModbusMaster.php @@ -181,7 +181,6 @@ class ModbusMaster $rec = ""; $timeoutInSeconds = $this->timeout_sec + ($this->timeout_msec / 1000); $lastAccess = microtime(true); - echo $lastAccess . PHP_EOL; while (socket_select($readsocks, $writesocks, $exceptsocks, 0, $this->socket_read_timeout_usec) !== false) { $this->status .= "Wait data ... " . PHP_EOL; if (in_array($this->sock, $readsocks)) { @@ -193,7 +192,6 @@ class ModbusMaster } else { $timeSpentWaiting = microtime(true) - $lastAccess; if ($timeSpentWaiting >= $timeoutInSeconds) { - echo $timeoutInSeconds . PHP_EOL; throw new Exception("Watchdog time expired [ " . $timeoutInSeconds . " sec]!!! Connection to " . $this->host . " is not established.");