Fixed linker issue

This commit is contained in:
Sebastian 2022-02-28 23:00:59 +01:00
parent de29e82327
commit 096a1065ea
2 changed files with 6 additions and 2 deletions

View file

@ -51,6 +51,8 @@
#include <stdarg.h> #include <stdarg.h>
struct modeStruct Modes;
// //
// ============================= Utility functions ========================== // ============================= Utility functions ==========================
// //

View file

@ -294,7 +294,7 @@ struct mag_buf {
}; };
// Program global state // Program global state
struct { // Internal state struct modeStruct { // Internal state
pthread_t reader_thread; pthread_t reader_thread;
pthread_mutex_t data_mutex; // Mutex to synchronize buffer access pthread_mutex_t data_mutex; // Mutex to synchronize buffer access
@ -392,7 +392,9 @@ struct { // Internal state
int stats_latest_1min; int stats_latest_1min;
struct stats stats_5min; struct stats stats_5min;
struct stats stats_15min; struct stats stats_15min;
} Modes; };
extern struct modeStruct Modes;
// The struct we use to store information about a decoded message. // The struct we use to store information about a decoded message.
struct modesMessage { struct modesMessage {