ignore extra events, which are coming while in wrong state sync
authorVolker Birk <vb@pep.foundation>
Thu, 23 Aug 2018 11:55:24 +0200
branchsync
changeset 28842ed5aba15296
parent 2883 a372b8f58aa1
child 2885 9907d249919e
ignore extra events, which are coming while in wrong state
sync/gen_statemachine.ysl2
     1.1 --- a/sync/gen_statemachine.ysl2	Thu Aug 23 11:43:22 2018 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Thu Aug 23 11:55:24 2018 +0200
     1.3 @@ -738,6 +738,10 @@
     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              }