Skip to content

Commit 4d1c2fe

Browse files
committed
Apply clang-format to all source files
Run clang-format on all .cpp/.h/.c files in src/, examples/, and variants/ to establish baseline compliance. Primarily re-indents variants/ from 4-space to 2-space to match project .clang-format config.
1 parent 586354f commit 4d1c2fe

405 files changed

Lines changed: 14142 additions & 13355 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
#pragma once
22

3+
#include <Arduino.h>
34
#include <MeshCore.h>
5+
#include <helpers/BaseSerialInterface.h>
6+
#include <helpers/SensorManager.h>
47
#include <helpers/ui/DisplayDriver.h>
58
#include <helpers/ui/UIScreen.h>
6-
#include <helpers/SensorManager.h>
7-
#include <helpers/BaseSerialInterface.h>
8-
#include <Arduino.h>
99

1010
#ifdef PIN_BUZZER
11-
#include <helpers/ui/buzzer.h>
11+
#include <helpers/ui/buzzer.h>
1212
#endif
1313

1414
#include "NodePrefs.h"
1515

16-
enum class UIEventType {
17-
none,
18-
contactMessage,
19-
channelMessage,
20-
roomMessage,
21-
newContactMessage,
22-
ack
23-
};
16+
enum class UIEventType { none, contactMessage, channelMessage, roomMessage, newContactMessage, ack };
2417

2518
class AbstractUITask {
2619
protected:
27-
mesh::MainBoard* _board;
28-
BaseSerialInterface* _serial;
20+
mesh::MainBoard *_board;
21+
BaseSerialInterface *_serial;
2922
bool _connected;
3023

31-
AbstractUITask(mesh::MainBoard* board, BaseSerialInterface* serial) : _board(board), _serial(serial) {
24+
AbstractUITask(mesh::MainBoard *board, BaseSerialInterface *serial) : _board(board), _serial(serial) {
3225
_connected = false;
3326
}
3427

@@ -40,7 +33,7 @@ class AbstractUITask {
4033
void enableSerial() { _serial->enable(); }
4134
void disableSerial() { _serial->disable(); }
4235
virtual void msgRead(int msgcount) = 0;
43-
virtual void newMsg(uint8_t path_len, const char* from_name, const char* text, int msgcount) = 0;
36+
virtual void newMsg(uint8_t path_len, const char *from_name, const char *text, int msgcount) = 0;
4437
virtual void notify(UIEventType t = UIEventType::none) = 0;
4538
virtual void loop() = 0;
4639
};

0 commit comments

Comments
 (0)