You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the slave machine continuously receives incorrect response and CRC check fails, the stack overflow will occur in an infinite loop if (receivedUnitIdentifier != this.unitIdentifier) data = new byte[2100]; else countRetries = 0;
if ((crc[0] != data[data[8]+9] | crc[1] != data[data[8]+10])& dataReceived) { if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now); if (NumberOfRetries <= countRetries) { countRetries = 0; throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed"); } else { countRetries++; Console.WriteLine("countRetries:{0}", countRetries); return ReadHoldingRegisters(startingAddress, quantity); } }
The text was updated successfully, but these errors were encountered:
When the slave machine continuously receives incorrect response and CRC check fails, the stack overflow will occur in an infinite loop
if (receivedUnitIdentifier != this.unitIdentifier) data = new byte[2100]; else countRetries = 0;
if ((crc[0] != data[data[8]+9] | crc[1] != data[data[8]+10])& dataReceived) { if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now); if (NumberOfRetries <= countRetries) { countRetries = 0; throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed"); } else { countRetries++; Console.WriteLine("countRetries:{0}", countRetries); return ReadHoldingRegisters(startingAddress, quantity); } }
The text was updated successfully, but these errors were encountered: