From 5f217291c5986bf6ec33777d58c17dad3300afc1 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 31 Jan 2025 00:10:20 +1100 Subject: [PATCH] IAC binary --- app/Classes/Protocol/EMSI.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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))