diff --git a/app/Classes/Protocol/EMSI.php b/app/Classes/Protocol/EMSI.php index 412d181..499a31d 100644 --- a/app/Classes/Protocol/EMSI.php +++ b/app/Classes/Protocol/EMSI.php @@ -999,11 +999,16 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface } if ($iaccmd) { - $iac = ord($this->client->read(10,1)); + $iac = $this->client->read_ch(10); $ch = NULL; + + } elseif (is_null($ch)) { + $ch = $this->client->read_ch(10); } } while (! is_null($iac)); + + Log::debug(sprintf('%s:- Leaving IAC with [%02x]',self::LOGKEY,$ch),['ch'=>serialize($ch)]); } if (($ch != self::TIMEOUT) && ($ch < 0))