remove unused variable

pull/3/merge
Ondřej Hruška 7 years ago
parent fd2ae72b79
commit be97fbd98c
  1. 2
      src/ModbusMaster.php

@ -209,7 +209,7 @@ class ModbusMaster
$readTout = $this->secsToSecUsecArray($this->socket_read_timeout_sec); $readTout = $this->secsToSecUsecArray($this->socket_read_timeout_sec);
while (false !== socket_select($readsocks, $writesocks, $exceptsocks, $readTout['sec'], $readTout['usec'])) { while (false !== socket_select($readsocks, $writesocks, $exceptsocks, $readTout['sec'], $readTout['usec'])) {
if (in_array($this->sock, $readsocks)) { if (in_array($this->sock, $readsocks)) {
if ($recn = @socket_recv($this->sock, $rec, 2000, 0)) { // read max 2000 bytes if (@socket_recv($this->sock, $rec, 2000, 0)) { // read max 2000 bytes
$this->status .= "Data received \n"; $this->status .= "Data received \n";
return $rec; return $rec;
} }

Loading…
Cancel
Save