From 416ae13eb14ac1876bcda60e1f79a6b8986a07f3 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Tue, 23 Feb 2021 14:01:09 +0100 Subject: [PATCH] Fixed linking error when building for linux --- openrtx/include/state.h | 2 +- openrtx/src/state.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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() { /*