From e75677d366dc3f3951110040eabedd77229af4e3 Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 27 Jan 2021 15:09:02 +0100 Subject: [PATCH] Moved calibytes and calfrchk to cpp file to avoid unused warning --- firmware/common/sonde_packet.cpp | 3 +++ firmware/common/sonde_packet.hpp | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) 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__*/