Skip to content

Commit c94ffcf

Browse files
ci(pre-commit): Apply automatic fixes
1 parent b29b5e8 commit c94ffcf

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

libraries/HTTPUpdateServer/src/HTTPUpdateServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static const char serverIndex[] PROGMEM =
2727
</body>
2828
</html>)";
2929
static const char successResponse[] PROGMEM = "<META http-equiv=\"refresh\" content=\"15;URL=/\">Update Success! Rebooting...";
30-
static const char * csrfHeaders[2] = {"Origin", "Host"};
30+
static const char *csrfHeaders[2] = {"Origin", "Host"};
3131

3232
class HTTPUpdateServer {
3333
public:

libraries/Update/examples/OTAWebUpdater/OTAWebUpdater.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
//#define PASSWORD "test123456" // generate if remarked
1010

1111
// Set the username and password for firmware upload
12-
const char * authUser = "........";
13-
const char * authPass = "........";
12+
const char *authUser = "........";
13+
const char *authPass = "........";
1414

1515
WebServer server(80);
1616
Ticker tkSecond;
1717
uint8_t otaDone = 0;
1818

19-
const char * csrfHeaders[2] = {"Origin", "Host"};
19+
const char *csrfHeaders[2] = {"Origin", "Host"};
2020
static bool authenticated = false;
2121

2222
const char *alphanum = "0123456789!@#$%^&*abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

libraries/WebServer/examples/WebUpdate/WebUpdate.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ const char *ssid = "........";
1313
const char *password = "........";
1414

1515
// Set the username and password for firmware upload
16-
const char * authUser = "........";
17-
const char * authPass = "........";
16+
const char *authUser = "........";
17+
const char *authPass = "........";
1818

1919
WebServer server(80);
2020
const char *serverIndex =
2121
"<form method='POST' action='/update' enctype='multipart/form-data'><input type='file' name='update'><input type='submit' value='Update'></form>";
2222

23-
const char * csrfHeaders[2] = {"Origin", "Host"};
23+
const char *csrfHeaders[2] = {"Origin", "Host"};
2424
static bool authenticated = false;
2525

2626
void setup(void) {
@@ -71,7 +71,7 @@ void setup(void) {
7171
authenticated = false;
7272
return;
7373
}
74-
74+
7575
Serial.printf("Update: %s\n", upload.filename.c_str());
7676
if (!Update.begin()) { //start with max available size
7777
Update.printError(Serial);
@@ -87,7 +87,7 @@ void setup(void) {
8787
Update.printError(Serial);
8888
}
8989
Serial.setDebugOutput(false);
90-
} else if(authenticated) {
90+
} else if (authenticated) {
9191
Serial.printf("Update Failed Unexpectedly (likely broken connection): status=%d\n", upload.status);
9292
}
9393
}

0 commit comments

Comments
 (0)