diff --git a/src/protocols/SamplesPacket.h b/src/protocols/SamplesPacket.h index c2e29158e..b5f2508fe 100644 --- a/src/protocols/SamplesPacket.h +++ b/src/protocols/SamplesPacket.h @@ -14,7 +14,9 @@ template class SamplesPacket { public: /** The size of the structure that holds the sample packet information. */ - static constexpr int headerSize = 3 * sizeof(uint8_t*) * chCount + sizeof(uint64_t) + sizeof(uint32_t)*4; // TODO: should be sizeof(SamplesPacket), but MSVC can't compile + static constexpr int headerSize = + 3 * sizeof(uint8_t*) * chCount + sizeof(uint64_t) + + sizeof(uint32_t) * 4; // TODO: should be sizeof(SamplesPacket), but MSVC can't compile /** @brief Constructs the sample packet class. @@ -182,6 +184,7 @@ template class SamplesPacket uint32_t length; uint32_t mCapacity; uint8_t frameSize; + public: bool useTimestamp; ///< Whether to use the timestamp or not. bool flush; ///< Whether to flush the whole packet early or not.