I just tried the above fix and got:
weatherlcd.cpp:23:21: fatal error: OneWire.h: No such file or directory
#include "OneWire.h"
So I tried re-including the OneWire library. I got some message about migrating to a new format so I said Yes. Then the entire page grayed out and went unresponsive. I waited quite a while and finally hit reload on the browser and got
The page you were looking for doesn't exist.You may have mistyped the address or the page may have moved.
So I closed the page, relogged in again and tried to compile. Now it’s going:
In file included from /src/weatherlcd.cpp:29:0:
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.h:66:0: warning: "_BV" redefined [enabled by default]
#define _BV(bit) (1 << (bit))
^
In file included from ./inc/application.h:92:0,
from lib/HttpClient/src/HttpClient.h:4,
from /src/weatherlcd.cpp:11:
../wiring/inc/spark_wiring_arduino.h:131:0: note: this is the location of the previous definition
#define _BV(x) (((uint32_t)1) << (x))
^
/src/weatherlcd.cpp: In function 'void printLCD()':
/src/weatherlcd.cpp:951:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
plus a ton of other errors.
This code compiled perfectly the last time I tried it. I haven’t touched anything since then. How do I fix this?