|
|
@ -28,9 +28,10 @@ def applyPatch(libName, patchFile): |
|
|
|
# list of patches to apply (relative to /src) |
|
|
|
applyPatch("ESPAsyncWebServer-esphome", "../patches/AsyncWeb_Prometheus.patch") |
|
|
|
|
|
|
|
if env['PIOENV'][:13] == "opendtufusion": |
|
|
|
applyPatch("GxEPD2", "../patches/GxEPD2_SW_SPI.patch") |
|
|
|
elif env['PIOENV'][:5] == "esp32": |
|
|
|
#if env['PIOENV'][:13] == "opendtufusion": |
|
|
|
#applyPatch("GxEPD2", "../patches/GxEPD2_SW_SPI.patch") |
|
|
|
#el |
|
|
|
if (env['PIOENV'][:5] == "esp32") or (env['PIOENV'][:13] == "opendtufusion"): |
|
|
|
applyPatch("GxEPD2", "../patches/GxEPD2_HAL.patch") |
|
|
|
|
|
|
|
if (env['PIOENV'][:13] == "opendtufusion") or (env['PIOENV'][:5] == "esp32"): |
|
|
|