Fixed linker issue
This commit is contained in:
parent
de29e82327
commit
096a1065ea
|
@ -51,6 +51,8 @@
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
struct modeStruct Modes;
|
||||||
|
|
||||||
//
|
//
|
||||||
// ============================= Utility functions ==========================
|
// ============================= Utility functions ==========================
|
||||||
//
|
//
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue