Skip to content

Commit db0d04b

Browse files
committed
Clang
1 parent f5bd52b commit db0d04b

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

src/components/display/controller.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ class DisplayController {
3636
bool Handle_Display_Remove(wippersnapper_display_v1_DisplayRemove *msgRemove);
3737
bool Handle_Display_Write(wippersnapper_display_v1_DisplayWrite *msgWrite);
3838
void update(int32_t rssi, bool is_connected);
39+
3940
private:
40-
DisplayHardware* findDisplay(const char* name);
41+
DisplayHardware *findDisplay(const char *name);
4142
std::vector<DisplayHardware *>
4243
_hw_instances; ///< Holds pointers to DisplayHardware instances
4344
unsigned long _last_bar_update; ///< Timestamp of last status bar update

src/components/display/drivers/dispDrvBase.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -157,31 +157,31 @@ class dispDrvBase {
157157
@note This method can be overridden by derived classes to provide
158158
specific functionality.
159159
*/
160-
virtual void updateStatusBar(int8_t rssi, uint8_t bat,
161-
bool mqtt_status) {
160+
virtual void updateStatusBar(int8_t rssi, uint8_t bat, bool mqtt_status) {
162161
// No-op for base class
163162
}
164163

165164
protected:
166-
int16_t _pin_dc; ///< Data/Command pin
167-
int16_t _pin_rst; ///< Reset pin
168-
int16_t _pin_cs; ///< Chip Select pin
169-
int16_t _pin_busy; ///< Optional Busy pin
170-
int16_t _pin_sram_cs; ///< Optional EPD SRAM chip select pin
171-
uint16_t _pin_mosi; ///< Optional MOSI pin for SPI TFT displays
172-
uint16_t _pin_miso; ///< Optional MISO pin for SPI TFT displays
173-
uint16_t _pin_sck; ///< Optional SCK pin for SPI TFT displays
174-
uint8_t _text_sz = 1; ///< Text size for displaying a message
175-
int16_t _height; ///< Height of the display
176-
int16_t _width; ///< Width of the display
177-
uint8_t _rotation; ///< Rotation of the display
165+
int16_t _pin_dc; ///< Data/Command pin
166+
int16_t _pin_rst; ///< Reset pin
167+
int16_t _pin_cs; ///< Chip Select pin
168+
int16_t _pin_busy; ///< Optional Busy pin
169+
int16_t _pin_sram_cs; ///< Optional EPD SRAM chip select pin
170+
uint16_t _pin_mosi; ///< Optional MOSI pin for SPI TFT displays
171+
uint16_t _pin_miso; ///< Optional MISO pin for SPI TFT displays
172+
uint16_t _pin_sck; ///< Optional SCK pin for SPI TFT displays
173+
uint8_t _text_sz = 1; ///< Text size for displaying a message
174+
int16_t _height; ///< Height of the display
175+
int16_t _width; ///< Width of the display
176+
uint8_t _rotation; ///< Rotation of the display
178177
// statusbar properties
179-
int _statusbar_icons_y; ///< Y position of status bar icons
178+
int _statusbar_icons_y; ///< Y position of status bar icons
180179
int _statusbar_icon_battery_x; ///< X position of battery icon
181-
int _statusbar_icon_wifi_x; ///< X position of WiFi icon
182-
int _statusbar_icon_cloud_x; ///< X position of cloud icon
183-
int8_t _statusbar_rssi; ///< RSSI value for status bar
184-
uint8_t _statusbar_bat; ///< Battery level, as a percentage, for the status bar
180+
int _statusbar_icon_wifi_x; ///< X position of WiFi icon
181+
int _statusbar_icon_cloud_x; ///< X position of cloud icon
182+
int8_t _statusbar_rssi; ///< RSSI value for status bar
183+
uint8_t
184+
_statusbar_bat; ///< Battery level, as a percentage, for the status bar
185185
bool _statusbar_mqtt_connected; ///< MQTT connection status for the status bar
186186
};
187187

0 commit comments

Comments
 (0)