Skip to content

Commit 0f9035a

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 505e9c3 commit 0f9035a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

libraries/ESP_NOW/src/ESP32_NOW.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ static void *new_arg = nullptr; // * tx_arg = nullptr, * rx_arg = nullptr,
1818
static bool _esp_now_has_begun = false;
1919
static ESP_NOW_Peer *_esp_now_peers[ESP_NOW_MAX_TOTAL_PEER_NUM];
2020

21-
static esp_err_t _esp_now_add_peer(const uint8_t *mac_addr, uint8_t channel, wifi_interface_t iface, const uint8_t *lmk, esp_now_rate_config_t *rate_config, ESP_NOW_Peer *_peer = nullptr) {
21+
static esp_err_t _esp_now_add_peer(
22+
const uint8_t *mac_addr, uint8_t channel, wifi_interface_t iface, const uint8_t *lmk, esp_now_rate_config_t *rate_config, ESP_NOW_Peer *_peer = nullptr
23+
) {
2224
log_i("Adding peer " MACSTR, MAC2STR(mac_addr));
2325
if (esp_now_is_peer_exist(mac_addr)) {
2426
log_e("Peer Already Exists");

libraries/ESP_NOW/src/ESP32_NOW.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ class ESP_NOW_Peer {
6868
bool remove();
6969
size_t send(const uint8_t *data, int len);
7070

71-
ESP_NOW_Peer(const uint8_t *mac_addr, uint8_t channel = 0, wifi_interface_t iface = WIFI_IF_AP, const uint8_t *lmk = nullptr, esp_now_rate_config_t *rate_config = nullptr);
71+
ESP_NOW_Peer(
72+
const uint8_t *mac_addr, uint8_t channel = 0, wifi_interface_t iface = WIFI_IF_AP, const uint8_t *lmk = nullptr,
73+
esp_now_rate_config_t *rate_config = nullptr
74+
);
7275

7376
public:
7477
virtual ~ESP_NOW_Peer() {}

0 commit comments

Comments
 (0)