diff --git a/platformio.ini b/platformio.ini
index 180d9556..f7ca959b 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -65,19 +65,19 @@ lib_deps =
[env:esp8266full]
extends = esp8266_common
-src_filter = -<*> +
+build_src_filter = -<*> +
[env:esp32sps30i2c]
extends = esp32_common
-src_filter = -<*> +
+build_src_filter = -<*> +
[env:esp32full]
extends = esp32_common
-src_filter = -<*> +
+build_src_filter = -<*> +
[env:esp32]
extends = esp32_common
-src_filter = -<*> +
+build_src_filter = -<*> +
; [env:teensy36]
; platform = teensy
@@ -92,4 +92,4 @@ src_filter = -<*> +
;[env:arduino]
;extends = arduino_avr
-;src_filter = -<*> +
+;build_src_filter = -<*> +