Skip to content

Commit cd63f2c

Browse files
authored
Update bme_V08c.ino
- Fix for new SparkfunBME280 lib who needs a Wire.begin() to work properly. - Fix for the HTTP_HEADER vs HTTP_HEAD renaming issue
1 parent 8ea8976 commit cd63f2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

V08/bme_V08c.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ void setup(void)
271271
Serial.println();
272272
delay(10);
273273

274+
Wire.begin();
275+
274276
SPIFFS.begin();
275277
if (SPIFFS.exists("/ssid.txt") == 0) {
276278
configMenu();
@@ -402,7 +404,7 @@ const char PAGE_infos[] PROGMEM = "<html>\
402404
</body>\
403405
</html>";
404406

405-
const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html><head lang='en'><title>{{callsign}} Weather Station</title>";
407+
const char HTTP_HEADER[] PROGMEM = "<!DOCTYPE html><html><head lang='en'><title>{{callsign}} Weather Station</title>";
406408
const char HTTP_SCRIPT[] PROGMEM = "<script></script>";
407409
const char HTTP_STYLE[] PROGMEM = "<style> body { background-color: #000000; font-family: Arial, Helvetica, Sans-Serif; Color: #13F70C; font-size: 32px;} </style>";
408410
const char HTTP_BODY[] PROGMEM = "<body>";
@@ -454,7 +456,7 @@ void handleSubmit(){
454456

455457
if (server.args() > 0 ) {
456458
//** common elements of the various pages
457-
message += FPSTR(HTTP_HEAD);
459+
message += FPSTR(HTTP_HEADER);
458460
message.replace("{{callsign}}", station.callsign);
459461
message += FPSTR(HTTP_SCRIPT);
460462
message += FPSTR(HTTP_STYLE);

0 commit comments

Comments
 (0)