From f2a9ed288835d68ba66293fe7772e46cb25379cf Mon Sep 17 00:00:00 2001 From: Simon Schmidt Date: Sun, 4 Jul 2021 14:45:14 +0200 Subject: [PATCH] clangtidy cleanups and added checks to platformio.ini --- include/ota.h | 4 ++-- templ_platformio_ini | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/ota.h b/include/ota.h index 14dc4d2..9df5c0b 100644 --- a/include/ota.h +++ b/include/ota.h @@ -1,8 +1,8 @@ #pragma once +#include #include #include -#include void ota_setup() { ArduinoOTA.setPort(8266); @@ -45,4 +45,4 @@ void ota_setup() { }); ArduinoOTA.begin(); -} \ No newline at end of file +} diff --git a/templ_platformio_ini b/templ_platformio_ini index 7eba75b..6ce861a 100644 --- a/templ_platformio_ini +++ b/templ_platformio_ini @@ -19,6 +19,15 @@ platform = espressif8266 board = nodemcuv2 framework = arduino +; for pio check +; check_tool = cppcheck +check_tool = clangtidy +check_flags = + ; clangtidy: --fix-errors + clangtidy: lib/httpserver/* lib/treppe/* lib/PCA9685-Arduino/* +check_skip_packages = yes + + board_build.filesystem = littlefs board_build.ldscript = eagle.flash.4m1m.ld extra_scripts = pre:create_gz_files.py