diff --git a/platformio.ini b/platformio.ini
index 20370759..38ece997 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -70,6 +70,8 @@ build_flags =
-I include ; include lv_conf.h and hasp_conf.h
${override.build_flags}
+src_filter = +<*> -<.git/> -<.svn/> - - - - -
+
; -- Platform specific build flags
[flags]
esp8266_flags=
@@ -130,6 +132,7 @@ monitor_port = COM7 ; To change the port, use platform_override.ini
build_flags =
${env.build_flags}
${flags.stm32_flags}
+ -I include/stm32f4
; -- TFT_eSPI build options ------------------------
${lcd.lolin24}
;-D TFT_MISO=PB4 ;Default
@@ -148,6 +151,9 @@ lib_deps =
STM32duino LwIP@^2.1.2
STM32duino STM32Ethernet@^1.0.5
+src_filter = +<*> -<.git/> -<.svn/> - - - - - +
+
+
;***************************************************
; Generic ESP32 build
;***************************************************