diff --git a/openrtx/include/state.h b/openrtx/include/state.h index b270b69f..f543b90a 100644 --- a/openrtx/include/state.h +++ b/openrtx/include/state.h @@ -113,7 +113,7 @@ enum RtxStatus RTX_TX }; -state_t state; +extern state_t state; /** * This function initializes the Radio state, acquiring the information diff --git a/openrtx/src/state.c b/openrtx/src/state.c index a8af1477..e359bee3 100644 --- a/openrtx/src/state.c +++ b/openrtx/src/state.c @@ -26,6 +26,8 @@ #include #include +state_t state; + void state_init() { /*