[PUYA] Prepare for upcoming PUYA patch in core library

See https://github.com/esp8266/Arduino/pull/5504
This needs a little change in the detect script to see if the previous patch already was applied.
This commit is contained in:
TD-er
2018-12-17 23:18:28 +01:00
parent 36d6c7d448
commit 9a46820d40
+1 -1
View File
@@ -5,7 +5,7 @@ PATCH=puya_v3.patch
for DIR in ~/.platformio/packages/framework-arduinoespressif8266*/; do
#not applied yet? (in upstream or otherwise)
if ! grep "0x146085 PUYA" $DIR/cores/esp8266/Esp.cpp >/dev/null; then
if ! grep "PUYA" $DIR/cores/esp8266/Esp.cpp >/dev/null; then
echo "Patching $DIR"
patch -p1 -d $DIR < $PATCH
fi