Skip to content

Commit 0f959d5

Browse files
committed
Clang again!
1 parent 536fb54 commit 0f959d5

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

src/adapters/wifi/ws_wifi_airlift.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@
2020
#ifndef WS_WIFI_AIRLIFT_H
2121
#define WS_WIFI_AIRLIFT_H
2222

23+
#include "../../helpers/ws_helper_macros.h"
2324
#include "Adafruit_MQTT.h"
2425
#include "Adafruit_MQTT_Client.h"
2526
#include "Arduino.h"
2627
#include "SPI.h"
2728
#include "WiFiNINA.h"
2829
#include "Wippersnapper_V2.h"
29-
#include "../../helpers/ws_helper_macros.h"
3030

31-
#define NINAFWVER "2.0.0-rc.0+adafruit" /*!< min. nina-fw version compatible with this library. */
31+
#define NINAFWVER \
32+
"2.0.0-rc.0+adafruit" /*!< min. nina-fw version compatible with this \
33+
library. */
3234
#define AIRLIFT_CONNECT_TIMEOUT_MS 20000 /*!< Connection timeout (in ms) */
3335
#define AIRLIFT_CONNECT_RETRY_DELAY_MS 200 /*!< delay time between retries. */
3436

@@ -301,7 +303,7 @@ class ws_wifi_airlift : public Wippersnapper_V2 {
301303
void _connect() {
302304
if (strlen(_ssid) == 0) {
303305
_statusV2 = WS_SSID_INVALID; // possibly unneccesary as already checking
304-
// elsewhere
306+
// elsewhere
305307
} else {
306308
// disconnect from possible previous connection
307309
_disconnect();

src/components/analogIO/model.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
@brief AnalogIOModel constructor
2020
*/
2121
/***********************************************************************/
22-
AnalogIOModel::AnalogIOModel()
23-
{
22+
AnalogIOModel::AnalogIOModel() {
2423
memset(&_msg_AnalogioAdd, 0, sizeof(_msg_AnalogioAdd));
2524
memset(&_msg_AnalogioRemove, 0, sizeof(_msg_AnalogioRemove));
2625
memset(&_msg_AnalogioEvent, 0, sizeof(_msg_AnalogioEvent));

src/components/ds18x20/model.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
@brief DS18X20Model constructor
2020
*/
2121
/***********************************************************************/
22-
DS18X20Model::DS18X20Model()
23-
{
22+
DS18X20Model::DS18X20Model() {
2423
memset(&_msg_DS18x20Add, 0, sizeof(_msg_DS18x20Add));
2524
memset(&_msg_DS18x20Added, 0, sizeof(_msg_DS18x20Added));
2625
memset(&_msg_DS18x20Remove, 0, sizeof(_msg_DS18x20Remove));

src/components/pixels/controller.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#include "hardware.h"
1919
#include "model.h"
2020

21-
#define MAX_PIXEL_STRANDS 10 ///< Maximum number of pixel strands connected to a WipperSnapper device
21+
#define MAX_PIXEL_STRANDS \
22+
10 ///< Maximum number of pixel strands connected to a WipperSnapper device
2223
#define STRAND_NOT_FOUND 0xFF ///< Strand not found in the array
2324

2425
class Wippersnapper_V2; ///< Forward declaration
@@ -39,11 +40,13 @@ class PixelsController {
3940
bool Handle_Pixels_Add(pb_istream_t *stream);
4041
bool Handle_Pixels_Write(pb_istream_t *stream);
4142
bool Handle_Pixels_Remove(pb_istream_t *stream);
43+
4244
private:
4345
PixelsModel *_pixels_model = nullptr; ///< Pointer to the model class
44-
PixelsHardware *_pixel_strands[MAX_PIXEL_STRANDS] = {nullptr}; ///< Pointer to the hardware class
45-
uint8_t _num_strands; ///< Number of pixel strands
46+
PixelsHardware *_pixel_strands[MAX_PIXEL_STRANDS] = {
47+
nullptr}; ///< Pointer to the hardware class
48+
uint8_t _num_strands; ///< Number of pixel strands
4649
uint16_t GetStrandIndex(uint16_t pin_data); // Returns 0xFF if not found
4750
};
4851
extern Wippersnapper_V2 WsV2; ///< Global V2 instance
49-
#endif // WS_PIXELS_CONTROLLER_H
52+
#endif // WS_PIXELS_CONTROLLER_H

src/components/sensor/model.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
@brief SensorModel constructor
2020
*/
2121
/***********************************************************************/
22-
SensorModel::SensorModel()
23-
{
22+
SensorModel::SensorModel() {
2423
memset(&_msg_sensor_event, 0, sizeof(_msg_sensor_event));
2524
// no-op
2625
}

src/display/ws_display_ui_helper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ void ws_display_ui_helper::build_scr_monitor() {
404404
/**************************************************************************/
405405
void ws_display_ui_helper::add_text_to_terminal(const char *text) {
406406
Serial.println("add_text_to_terminal");
407-
/* char txtBuffer[256]; // temporary text buffer for snprintf
408-
snprintf(txtBuffer, 256, text);
409-
addToTerminal(txtBuffer); */
407+
/* char txtBuffer[256]; // temporary text buffer for snprintf
408+
snprintf(txtBuffer, 256, text);
409+
addToTerminal(txtBuffer); */
410410
}
411411

412412
/**************************************************************************/

0 commit comments

Comments
 (0)