From e4d625bf5aa62141738d1aac64554c694d7fd725 Mon Sep 17 00:00:00 2001 From: "stefan.poeter@cloud-automation.de" Date: Mon, 23 May 2016 11:50:19 +0200 Subject: [PATCH] Fixed grouping problem. --- soem/ethercatmain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/soem/ethercatmain.c b/soem/ethercatmain.c index bdb3b73..54b67b8 100644 --- a/soem/ethercatmain.c +++ b/soem/ethercatmain.c @@ -1863,6 +1863,11 @@ int ecx_receive_processdata_group(ecx_contextt *context, uint8 group, int timeou pos = ecx_pullindex(context); } + if (pos == -1) { + context->idxstack->pushed = 0; + context->idxstack->pulled = 0; + } + /* if no frames has arrived */ if (valid_wkc == 0) {