Skip to content

Commit 82476b8

Browse files
committed
Clang format
1 parent 1b9b634 commit 82476b8

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

src/Wippersnapper.h

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,16 @@
4747
// Define actual debug output functions when necessary.
4848
#ifdef WS_DEBUG
4949
#define WS_DEBUG_PRINT(...) \
50-
{ \
51-
WS_PRINTER.print(__VA_ARGS__); \
52-
} ///< Prints debug output.
50+
{ WS_PRINTER.print(__VA_ARGS__); } ///< Prints debug output.
5351
#define WS_DEBUG_PRINTLN(...) \
54-
{ \
55-
WS_PRINTER.println(__VA_ARGS__); \
56-
} ///< Prints line from debug output.
52+
{ WS_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output.
5753
#define WS_DEBUG_PRINTHEX(...) \
58-
{ \
59-
WS_PRINTER.print(__VA_ARGS__, HEX); \
60-
} ///< Prints debug output.
54+
{ WS_PRINTER.print(__VA_ARGS__, HEX); } ///< Prints debug output.
6155
#else
6256
#define WS_DEBUG_PRINT(...) \
63-
{ \
64-
} ///< Prints debug output
57+
{} ///< Prints debug output
6558
#define WS_DEBUG_PRINTLN(...) \
66-
{ \
67-
} ///< Prints line from debug output.
59+
{} ///< Prints line from debug output.
6860
#endif
6961

7062
#define WS_DELAY_WITH_WDT(timeout) \

src/components/display/controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DisplayController::DisplayController() {}
2525
DisplayController::~DisplayController() {
2626
// Clean up all display hardware instances
2727
for (DisplayHardware *hw_instance : _hw_instances) {
28-
delete hw_instance;
28+
delete hw_instance;
2929
}
3030
_hw_instances.clear();
3131
}

src/components/display/controller.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class DisplayController {
3535
wippersnapper_display_v1_DisplayAddOrReplace *msgAdd);
3636
bool Handle_Display_Remove(wippersnapper_display_v1_DisplayRemove *msgRemove);
3737
bool Handle_Display_Write(wippersnapper_display_v1_DisplayWrite *msgWrite);
38+
3839
private:
3940
std::vector<DisplayHardware *>
4041
_hw_instances; ///< Holds pointers to DisplayHardware instances

src/components/display/drivers/dispDrvThinkInkGrayscale4T5.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
#include "dispDrvBase.h"
2020

2121
/*!
22-
@brief Driver for a ThinkInk 2.9" Grayscale 4-level T5 display (pre-2025 version of the Adafruit MagTag).
22+
@brief Driver for a ThinkInk 2.9" Grayscale 4-level T5 display (pre-2025
23+
version of the Adafruit MagTag).
2324
*/
2425
class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
2526
public:
@@ -38,7 +39,7 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
3839
Optional Busy pin for the display.
3940
*/
4041
dispDrvThinkInkGrayscale4T5(int16_t dc, int16_t rst, int16_t cs,
41-
int16_t sram_cs = -1, int16_t busy = -1)
42+
int16_t sram_cs = -1, int16_t busy = -1)
4243
: dispDrvBase(dc, rst, cs, sram_cs, busy), _display(nullptr) {}
4344

4445
~dispDrvThinkInkGrayscale4T5() {
@@ -59,7 +60,7 @@ class dispDrvThinkInkGrayscale4T5 : public dispDrvBase {
5960
*/
6061
bool begin(thinkinkmode_t mode, bool reset = true) override {
6162
_display = new ThinkInk_290_Grayscale4_T5(_pin_dc, _pin_rst, _pin_cs,
62-
_pin_sram_cs, _pin_busy);
63+
_pin_sram_cs, _pin_busy);
6364
if (!_display)
6465
return false; // Allocation failed
6566

0 commit comments

Comments
 (0)