File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 11// #define WEBSITE_ON_SD_CARD // Comment out this line when using external
2- // webserver
2+ // webserver
33#define WEBSITE_ON_EXTERNAL_WEBSERVER // Comment this line out the using SD
44 // card
55
@@ -38,19 +38,19 @@ void setup() {
3838
3939 // SD card
4040#ifdef WEBSITE_ON_SD_CARD
41- Serial.println (" Initializing SD card..." );
42- if (!SD.begin (4 )) {
43- Serial.println (" ERROR - SD card initialization failed!" );
44- return ;
45- }
46- Serial.println (" SUCCESS - SD card initialized." );
41+ Serial.println (" Initializing SD card..." );
42+ if (!SD.begin (4 )) {
43+ Serial.println (" ERROR - SD card initialization failed!" );
44+ return ;
45+ }
46+ Serial.println (" SUCCESS - SD card initialized." );
4747
48- Serial.println (" Searching for website on SD card..." );
49- if (!SD.exists (" index.htm" )) {
50- Serial.println (" ERROR - Can't find index.htm!" );
51- return ;
52- }
53- Serial.println (" SUCCESS - Found file." );
48+ Serial.println (" Searching for website on SD card..." );
49+ if (!SD.exists (" index.htm" )) {
50+ Serial.println (" ERROR - Can't find index.htm!" );
51+ return ;
52+ }
53+ Serial.println (" SUCCESS - Found file." );
5454#endif
5555}
5656
You can’t perform that action at this time.
0 commit comments