diff --git a/firmware/common/sonde_packet.cpp b/firmware/common/sonde_packet.cpp index 9b13c486..8eb15a2a 100644 --- a/firmware/common/sonde_packet.cpp +++ b/firmware/common/sonde_packet.cpp @@ -27,6 +27,9 @@ namespace sonde { +static uint8_t calibytes[51*16]; //need these vars to survive +static uint8_t calfrchk[51]; //so subframes are preserved while populated + //Defines for Vaisala RS41, from https://github.com/rs1729/RS/blob/master/rs41/rs41sg.c #define MASK_LEN 64 diff --git a/firmware/common/sonde_packet.hpp b/firmware/common/sonde_packet.hpp index 54227db5..934a2077 100644 --- a/firmware/common/sonde_packet.hpp +++ b/firmware/common/sonde_packet.hpp @@ -32,9 +32,6 @@ namespace sonde { - static uint8_t calibytes[51*16]; //need these vars to survive - static uint8_t calfrchk[51]; //so subframes are preserved while populated - struct GPS_data { uint32_t alt { 0 }; float lat { 0 }; @@ -105,4 +102,4 @@ private: } /* namespace sonde */ -#endif/*__SONDE_PACKET_H__*/ \ No newline at end of file +#endif/*__SONDE_PACKET_H__*/