Skip to content

Commit 0ff0cfa

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 377aecd commit 0ff0cfa

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

libraries/AsyncUDP/src/AsyncUDP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ AsyncUDPPacket::AsyncUDPPacket(AsyncUDPPacket &packet) {
317317
pbuf_ref(_pb);
318318
}
319319

320-
AsyncUDPPacket& AsyncUDPPacket::operator=(const AsyncUDPPacket& packet) {
320+
AsyncUDPPacket &AsyncUDPPacket::operator=(const AsyncUDPPacket &packet) {
321321
if (this != &packet) {
322322
if (_pb) {
323323
// Free existing pbuf reference

libraries/AsyncUDP/src/AsyncUDP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class AsyncUDPPacket : public Stream {
102102
size_t write(uint8_t data);
103103

104104
// Copy assignment operator
105-
AsyncUDPPacket& operator=(const AsyncUDPPacket& packet);
105+
AsyncUDPPacket &operator=(const AsyncUDPPacket &packet);
106106
};
107107

108108
class AsyncUDP : public Print {

libraries/EEPROM/src/EEPROM.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool EEPROMClass::begin(size_t size) {
6060
}
6161
if (size < key_size) { // truncate
6262
log_w("truncating EEPROM from %d to %d", key_size, size);
63-
uint8_t *key_data = new(std::nothrow) uint8_t[key_size];
63+
uint8_t *key_data = new (std::nothrow) uint8_t[key_size];
6464
if (!key_data) {
6565
log_e("Not enough memory to truncate EEPROM!");
6666
return false;
@@ -71,7 +71,7 @@ bool EEPROMClass::begin(size_t size) {
7171
delete[] key_data;
7272
} else if (size > key_size) { // expand or new
7373
size_t expand_size = size - key_size;
74-
uint8_t *expand_key = new(std::nothrow) uint8_t[expand_size];
74+
uint8_t *expand_key = new (std::nothrow) uint8_t[expand_size];
7575
if (!expand_key) {
7676
log_e("Not enough memory to expand EEPROM!");
7777
return false;
@@ -84,7 +84,7 @@ bool EEPROMClass::begin(size_t size) {
8484
}
8585
delete[] expand_key;
8686
nvs_erase_key(_handle, "expand");
87-
uint8_t *key_data = new(std::nothrow) uint8_t[size];
87+
uint8_t *key_data = new (std::nothrow) uint8_t[size];
8888
if (!key_data) {
8989
log_e("Not enough memory to expand EEPROM!");
9090
return false;
@@ -108,7 +108,7 @@ bool EEPROMClass::begin(size_t size) {
108108
delete[] _data;
109109
}
110110

111-
_data = new(std::nothrow) uint8_t[size];
111+
_data = new (std::nothrow) uint8_t[size];
112112
if (!_data) {
113113
log_e("Not enough memory for %d bytes in EEPROM", size);
114114
return false;
@@ -213,7 +213,7 @@ uint16_t EEPROMClass::convert(bool clear, const char *EEPROMname, const char *nv
213213
}
214214

215215
size_t size = mypart->size;
216-
uint8_t *data = new(std::nothrow) uint8_t[size];
216+
uint8_t *data = new (std::nothrow) uint8_t[size];
217217
if (!data) {
218218
log_e("Not enough memory to convert EEPROM!");
219219
goto exit;

libraries/ESP32/examples/FreeRTOS/Mutex/Mutex.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ void Task(void *pvParameters) { // This is a task.
7171
#endif
7272
int new_value = random(1000);
7373

74-
char str0[35]; // Maximum possible length of the string
74+
char str0[35]; // Maximum possible length of the string
7575
snprintf(str0, sizeof(str0), " %d <- %d |", shared_variable, new_value);
76-
char str1[46]; // Maximum possible length of the string
76+
char str1[46]; // Maximum possible length of the string
7777
snprintf(str1, sizeof(str1), " | %d <- %d", shared_variable, new_value);
7878
Serial.printf("%s\n", task_num ? str0 : str1);
7979

libraries/FFat/examples/FFat_time/FFat_time.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
3131
struct tm tmstruct;
3232
localtime_r(&t, &tmstruct);
3333
Serial.printf(
34-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
35-
tmstruct.tm_min, tmstruct.tm_sec
34+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
35+
tmstruct.tm_sec
3636
);
3737
if (levels) {
3838
listDir(fs, file.path(), levels - 1);
@@ -46,8 +46,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
4646
struct tm tmstruct;
4747
localtime_r(&t, &tmstruct);
4848
Serial.printf(
49-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
50-
tmstruct.tm_min, tmstruct.tm_sec
49+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
50+
tmstruct.tm_sec
5151
);
5252
}
5353
file = root.openNextFile();

libraries/LittleFS/examples/LITTLEFS_time/LITTLEFS_time.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
4343
struct tm tmstruct;
4444
localtime_r(&t, &tmstruct);
4545
Serial.printf(
46-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
47-
tmstruct.tm_min, tmstruct.tm_sec
46+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
47+
tmstruct.tm_sec
4848
);
4949
if (levels) {
5050
listDir(fs, file.path(), levels - 1);
@@ -58,8 +58,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
5858
struct tm tmstruct;
5959
localtime_r(&t, &tmstruct);
6060
Serial.printf(
61-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
62-
tmstruct.tm_min, tmstruct.tm_sec
61+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
62+
tmstruct.tm_sec
6363
);
6464
}
6565
file = root.openNextFile();

libraries/SD/examples/SD_time/SD_time.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
8181
struct tm tmstruct;
8282
localtime_r(&t, &tmstruct);
8383
Serial.printf(
84-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
85-
tmstruct.tm_min, tmstruct.tm_sec
84+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
85+
tmstruct.tm_sec
8686
);
8787
if (levels) {
8888
listDir(fs, file.path(), levels - 1);
@@ -96,8 +96,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
9696
struct tm tmstruct;
9797
localtime_r(&t, &tmstruct);
9898
Serial.printf(
99-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
100-
tmstruct.tm_min, tmstruct.tm_sec
99+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
100+
tmstruct.tm_sec
101101
);
102102
}
103103
file = root.openNextFile();

libraries/SD/src/sd_diskio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ DSTATUS ff_sd_initialize(uint8_t pdrv) {
563563
if (resp & (1 << 30)) {
564564
card->type = CARD_SDHC; // High capacity card (SDHC/SDXC)
565565
} else {
566-
card->type = CARD_SD; // Standard capacity card
566+
card->type = CARD_SD; // Standard capacity card
567567
}
568568
} else {
569569
log_w("READ_OCR failed: %X", resp);

libraries/SD_MMC/examples/SDMMC_time/SDMMC_time.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
8686
struct tm tmstruct;
8787
localtime_r(&t, &tmstruct);
8888
Serial.printf(
89-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
90-
tmstruct.tm_min, tmstruct.tm_sec
89+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
90+
tmstruct.tm_sec
9191
);
9292
if (levels) {
9393
listDir(fs, file.path(), levels - 1);
@@ -101,8 +101,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
101101
struct tm tmstruct;
102102
localtime_r(&t, &tmstruct);
103103
Serial.printf(
104-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
105-
tmstruct.tm_min, tmstruct.tm_sec
104+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
105+
tmstruct.tm_sec
106106
);
107107
}
108108
file = root.openNextFile();

libraries/SPIFFS/examples/SPIFFS_time/SPIFFS_time.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
3131
struct tm tmstruct;
3232
localtime_r(&t, &tmstruct);
3333
Serial.printf(
34-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
35-
tmstruct.tm_min, tmstruct.tm_sec
34+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
35+
tmstruct.tm_sec
3636
);
3737
if (levels) {
3838
listDir(fs, file.path(), levels - 1);
@@ -46,8 +46,8 @@ void listDir(fs::FS &fs, const char *dirname, uint8_t levels) {
4646
struct tm tmstruct;
4747
localtime_r(&t, &tmstruct);
4848
Serial.printf(
49-
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour,
50-
tmstruct.tm_min, tmstruct.tm_sec
49+
" LAST WRITE: %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min,
50+
tmstruct.tm_sec
5151
);
5252
}
5353
file = root.openNextFile();

0 commit comments

Comments
 (0)