Merge pull request 'fixTemplate' (#2) from fixTemplate into main
Reviewed-on: #2
This commit is contained in:
commit
0914985025
@ -19,6 +19,9 @@ void ${filename}_startBehaviour(${filename}* me){
|
|||||||
bool ${filename}_processEvent(Event* ev) {
|
bool ${filename}_processEvent(Event* ev) {
|
||||||
bool processed = false;
|
bool processed = false;
|
||||||
${filename}* me = (${filename}*)Event_getTarget(ev);
|
${filename}* me = (${filename}*)Event_getTarget(ev);
|
||||||
|
${filename}_STATES oldState = me->state;
|
||||||
|
evIDT evid = Event_getId(ev);
|
||||||
|
|
||||||
switch (me->state) { // onState
|
switch (me->state) { // onState
|
||||||
case ST${fn}_INIT:
|
case ST${fn}_INIT:
|
||||||
if (ev->id == ev${fn}init) {
|
if (ev->id == ev${fn}init) {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "../xf/xf.h"
|
#include "../xf/xf.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
ST${fn}_INIT,
|
||||||
${STATES_ENUM}
|
${STATES_ENUM}
|
||||||
} ${filename}_STATES;
|
} ${filename}_STATES;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user