Skip to content

Commit c53fee7

Browse files
committed
2 parents e7fe434 + 6d00251 commit c53fee7

File tree

22 files changed

+89
-281
lines changed

22 files changed

+89
-281
lines changed

.github/workflows/cli-build-esp32-dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
workflow_dispatch:
77
push:
88
branches:
9-
- dev
9+
- main
10+
- release/*
1011

1112
pull_request:
1213

-3.01 MB
Binary file not shown.

.github/workflows/pio-build-esp32-dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
workflow_dispatch:
77
push:
88
branches:
9-
- dev
9+
- master
10+
- release/*
1011

1112
pull_request:
1213

.github/workflows/pio-build-esp8266.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
workflow_dispatch:
77
push:
88
branches:
9-
- dev
10-
# - master
11-
# - release/*
9+
- master
10+
- release/*
11+
1212
pull_request:
1313

1414
concurrency:

examples/binaryWebSocket/binaryWebSocket.ino

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,6 @@ void setup() {
209209
// Enable ACE FS file web editor and add FS info callback function
210210
server.enableFsCodeEditor();
211211

212-
#ifdef ESP32
213-
server.setFsInfoCallback([](fsInfo_t* fsInfo) {
214-
fsInfo->fsName = "LittleFS";
215-
fsInfo->totalBytes = LittleFS.totalBytes();
216-
fsInfo->usedBytes = LittleFS.usedBytes();
217-
});
218-
#endif
219-
220212
// Init with custom WebSocket event handler and start server
221213
server.init(onWsEvent);
222214

examples/csvLogger/csvLogger.ino

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,7 @@ void setup() {
9595

9696
// Enable ACE FS file web editor and add FS info callback fucntion
9797
server.enableFsCodeEditor();
98-
#ifdef ESP32
99-
server.setFsInfoCallback([](fsInfo_t* fsInfo) {
100-
fsInfo->totalBytes = LittleFS.totalBytes();
101-
fsInfo->usedBytes = LittleFS.usedBytes();
102-
fsInfo->fsName = "LittleFS";
103-
});
104-
#endif
105-
98+
10699
// Start server
107100
server.init();
108101
Serial.print(F("Async ESP Web Server started on IP Address: "));

examples/csvLoggerSD/csvLoggerSD.ino

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,6 @@ void setup() {
117117

118118
// Enable ACE FS file web editor and add FS info callback fucntion
119119
server.enableFsCodeEditor();
120-
#ifdef ESP32
121-
server.setFsInfoCallback([](fsInfo_t* fsInfo) {
122-
fsInfo->totalBytes = SD.totalBytes();
123-
fsInfo->usedBytes = SD.usedBytes();
124-
fsInfo->fsName = "SD";
125-
});
126-
#endif
127120

128121
// Start server
129122
server.init();

examples/customHTML/customHTML.ino

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,6 @@ bool startFilesystem() {
7878
return false;
7979
}
8080

81-
/*
82-
* Getting FS info (total and free bytes) is strictly related to
83-
* filesystem library used (LittleFS, FFat, SPIFFS etc etc) and ESP framework
84-
*/
85-
#ifdef ESP32
86-
void getFsInfo(fsInfo_t* fsInfo) {
87-
fsInfo->fsName = "LittleFS";
88-
fsInfo->totalBytes = LittleFS.totalBytes();
89-
fsInfo->usedBytes = LittleFS.usedBytes();
90-
}
91-
#endif
92-
9381

9482
//////////////////// Load application options from filesystem ////////////////////
9583
bool loadOptions() {
@@ -196,11 +184,7 @@ void setup() {
196184
server.setLogoBase64(base64_logo, "128", "128", /*overwrite file*/ false);
197185

198186
// Enable ACE FS file web editor and add FS info callback function
199-
#ifdef ESP32
200-
server.enableFsCodeEditor(getFsInfo);
201-
#else
202187
server.enableFsCodeEditor();
203-
#endif
204188

205189
// Inform user when config.json is saved via /edit or /upload
206190
server.setConfigSavedCallback(onConfigSaved);

examples/customOptions/customOptions.ino

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,7 @@ void setup() {
163163
server.addJavascript(reload_btn_script, "js", /*overwrite*/ false);
164164

165165
// Enable ACE FS file web editor and add FS info callback function
166-
#ifdef ESP32
167-
server.enableFsCodeEditor([](fsInfo_t* fsInfo) {
168-
fsInfo->fsName = "LittleFS";
169-
fsInfo->totalBytes = LittleFS.totalBytes();
170-
fsInfo->usedBytes = LittleFS.usedBytes();
171-
});
172-
#else
173-
// ESP8266 core support LittleFS by default
174166
server.enableFsCodeEditor();
175-
#endif
176167

177168
// set /setup and /edit page authentication
178169
server.setAuthentication("admin", "admin");

examples/esp32-cam/esp32-cam.ino

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ void setup() {
7878

7979
// Enable ACE FS file web editor and add FS info callback function
8080
server.enableFsCodeEditor();
81-
server.setFsInfoCallback([](fsInfo_t* fsInfo) {
82-
fsInfo->totalBytes = SD_MMC.totalBytes();
83-
fsInfo->usedBytes = SD_MMC.usedBytes();
84-
});
8581

8682
// Add custom handlers to webserver
8783
server.on("/getPicture", getPicture);

0 commit comments

Comments
 (0)