ignore events sync
authorVolker Birk <vb@pep.foundation>
Thu, 23 Aug 2018 12:26:49 +0200
branchsync
changeset 28859907d249919e
parent 2884 2ed5aba15296
child 2886 ee600afcb920
ignore events
sync/gen_statemachine.ysl2
     1.1 --- a/sync/gen_statemachine.ysl2	Thu Aug 23 11:55:24 2018 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Thu Aug 23 12:26:49 2018 +0200
     1.3 @@ -738,12 +738,9 @@
     1.4          ||
     1.5                  `` apply "event", 2, mode=fsm
     1.6                  default:
     1.7 -                    // ignore extra events, which are coming while in wrong state
     1.8 -                    if (event > «../@name»_event_Extra)
     1.9 -                        break;
    1.10 -
    1.11 -                    «../@name»_ERR_LOG_INT("invalid event", event);
    1.12 -                    return invalid_event;
    1.13 +                    // ignore events not handled here
    1.14 +                    «../@name»_SERVICE_LOG("ignoring event", KeySync_event_name(event));
    1.15 +                    break;
    1.16              }
    1.17              break;
    1.18