naasking/async.h

Same name for enum and struct compiler problem

sebastianomelita opened this issue · 0 comments

When i use the optional core async structure,

In file included from sketch.ino:4:
/sketch/async.h:80:8: error: using typedef-name 'async' after 'struct'
struct async { async_state; };

apparently is because

typedef enum ASYNC_EVT { ASYNC_INIT = 0, ASYNC_CONT = ASYNC_INIT, ASYNC_DONE = 1 } async;

and

struct async { async_state; };

have the same name async.