diff --git a/dump1090.h b/dump1090.h index 96d1b1b..f45bb34 100644 --- a/dump1090.h +++ b/dump1090.h @@ -65,6 +65,7 @@ #include #include #include +#include #include #include #include @@ -306,7 +307,7 @@ struct _Modes { // Internal state double sample_rate; // actual sample rate in use (in hz) uint16_t *log10lut; // Magnitude -> log10 lookup table - int exit; // Exit from the main loop when true (2 = unclean exit) + atomic_int exit; // Exit from the main loop when true (2 = unclean exit) // Sample conversion int dc_filter; // should we apply a DC filter?