Skip to content

Commit 7be8c1d

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
overlooked duplicate name
1 parent ecfac7c commit 7be8c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bool loadFromSdCard(String path){
100100
return false;
101101
}
102102

103-
void loadFromSdCard(){
103+
void tryLoadFromSdCard(){
104104
String message = "FileNotFound\n\n";
105105
if(hasSD){
106106
//try to load the URL from SD Card
@@ -142,7 +142,7 @@ void setup(void){
142142
}
143143

144144
//Attach handler
145-
server.onNotFound(loadFromSdCard);
145+
server.onNotFound(tryLoadFromSdCard);
146146

147147
//start server
148148
server.begin();

0 commit comments

Comments
 (0)