From 0ec72e6171fdb35b37ce6e64ab75e65414770689 Mon Sep 17 00:00:00 2001 From: Tino <39706436+tinbie@users.noreply.github.com> Date: Thu, 6 Jun 2024 09:48:53 +0200 Subject: [PATCH] Change comparison for new IO data according to specification - new data, if CIP sequence count is different than previous one, Vol2_1.33 3-4.1 --- source/src/cip/cipioconnection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/src/cip/cipioconnection.c b/source/src/cip/cipioconnection.c index a9a1de4ba..4193f8d3b 100644 --- a/source/src/cip/cipioconnection.c +++ b/source/src/cip/cipioconnection.c @@ -920,8 +920,7 @@ EipStatus HandleReceivedIoConnectionData(CipConnectionObject *connection_object, ConnectionObjectGetTransportClassTriggerTransportClass(connection_object) ) { EipUint16 sequence_buffer = GetUintFromMessage( &(data) ); - if( SEQ_LEQ16(sequence_buffer, - connection_object->sequence_count_consuming) ) { + if( sequence_buffer == (connection_object->sequence_count_consuming) ) { no_new_data = true; } connection_object->sequence_count_consuming = sequence_buffer;