From dc0fd31706ff26fbd28b004a971ea4a702fb5e60 Mon Sep 17 00:00:00 2001 From: Rob Deutsch Date: Wed, 26 Jun 2024 18:04:00 +1000 Subject: [PATCH] library.json specifies libCompatMode strict (#2111) This PR is based on platformio's documentation. I will test it next week. This PR instructs platformio to pay attention to both the `frameworks` AND `platforms` specification before trying to compile IRremoteESP8266. I would've thought that platformio would do this check by default, but apparently not. By default it only checks `frameworks`. Source: https://docs.platformio.org/en/latest/manifests/library-json/fields/platforms.html The documentation for libCompatMode can be found here: https://docs.platformio.org/en/latest/manifests/library-json/fields/build/libcompatmode.html#manifest-library-json-build-libcompatmode --- library.json | 1 + 1 file changed, 1 insertion(+) diff --git a/library.json b/library.json index 60c481152..06d0b7570 100644 --- a/library.json +++ b/library.json @@ -46,5 +46,6 @@ ], "exclude": [".github", "extras", "docs", "assets"], "frameworks": "arduino", + "libCompatMode": "strict", "platforms": ["espressif8266", "espressif32"] }