Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Mar 6, 2024
1 parent 49a7bf0 commit b970157
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
5 changes: 3 additions & 2 deletions include/DMDUtil/DMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <shared_mutex>
#include <string>
#include <thread>

#include "sockpp/tcp_connector.h"

#if defined(__APPLE__)
Expand Down Expand Up @@ -74,7 +75,7 @@ class DMDUTILAPI DMD
AlphaNumeric
};

#pragma pack(push, 1) // Align to 1-byte boundaries, important for sending over socket.
#pragma pack(push, 1) // Align to 1-byte boundaries, important for sending over socket.
struct Update
{
Mode mode;
Expand Down Expand Up @@ -103,7 +104,7 @@ class DMDUTILAPI DMD
uint16_t height = 0;
uint32_t length = 0;
};
#pragma pack(pop) // Reset to default packing
#pragma pack(pop) // Reset to default packing

bool ConnectDMDServer();
void FindDisplays();
Expand Down
2 changes: 1 addition & 1 deletion src/AlphaNumeric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void AlphaNumeric::DrawPixel(uint8_t* pFrame, const int x, const int y, const ui
pFrame[y * 128 + x] = colour;
}

void AlphaNumeric::Clear(uint8_t* pFrame) { memset(pFrame, 0, 128*32); }
void AlphaNumeric::Clear(uint8_t* pFrame) { memset(pFrame, 0, 128 * 32); }

void AlphaNumeric::Render2x16Alpha(uint8_t* pFrame, const uint16_t* const seg_data)
{
Expand Down
9 changes: 4 additions & 5 deletions src/Serum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ bool Serum::ColorizeWithMetadata(uint8_t* frame, int width, int height, uint8_t*
return Serum_ColorizeWithMetadata(frame, width, height, palette, rotations, triggerID, hashcode, frameID);
}

void Serum::SetIgnoreUnknownFramesTimeout(int milliseconds){
return Serum_SetIgnoreUnknownFramesTimeout((uint16_t) milliseconds);
void Serum::SetIgnoreUnknownFramesTimeout(int milliseconds)
{
return Serum_SetIgnoreUnknownFramesTimeout((uint16_t)milliseconds);
}

void Serum::SetMaximumUnknownFramesToSkip(int maximum){
return Serum_SetMaximumUnknownFramesToSkip((uint8_t) maximum);
}
void Serum::SetMaximumUnknownFramesToSkip(int maximum) { return Serum_SetMaximumUnknownFramesToSkip((uint8_t)maximum); }

} // namespace DMDUtil
6 changes: 3 additions & 3 deletions src/test.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <cstring>

#include <chrono>
#include <cstring>
#include <thread>

#include "DMDUtil/DMDUtil.h"
Expand Down Expand Up @@ -41,7 +40,8 @@ uint8_t* CreateImageRGB24(int width, int height)
return pImage;
}

void run(DMDUtil::DMD* pDmd) {
void run(DMDUtil::DMD* pDmd)
{
int width = 128;
int height = 32;

Expand Down

0 comments on commit b970157

Please sign in to comment.