Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Mar 18, 2024
1 parent 200fffe commit d732544
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/protocols/SamplesPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ template<uint8_t chCount> 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<chCount>), 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<chCount>), but MSVC can't compile

/**
@brief Constructs the sample packet class.
Expand Down Expand Up @@ -182,6 +184,7 @@ template<uint8_t chCount> 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.
Expand Down

0 comments on commit d732544

Please sign in to comment.