diff --git a/site_ansto/hardsup/sct_tcpmodbus.c b/site_ansto/hardsup/sct_tcpmodbus.c index 96ab19e5..ec3f6d65 100644 --- a/site_ansto/hardsup/sct_tcpmodbus.c +++ b/site_ansto/hardsup/sct_tcpmodbus.c @@ -304,6 +304,9 @@ int TCPMBReading(Ascon *a) { } if (allRead == 0 && aduLen >= (6 + RespLen)) { /* all of response has been read */ + /* FIXME If the Length field (ie RespLen) is wrong then we loop forever waiting for a response. + Can this be detected automatically (eg timeout) and reset? + */ allRead = 1; } if (allRead) {