Browse Source

clangtidy cleanups and added checks to platformio.ini

tags/v1.0.0
Simon Schmidt 3 years ago
parent
commit
f2a9ed2888
2 changed files with 11 additions and 2 deletions
  1. 2
    2
      include/ota.h
  2. 9
    0
      templ_platformio_ini

+ 2
- 2
include/ota.h View File

#pragma once #pragma once


#include <ArduinoOTA.h>
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
#include <WiFiUdp.h> #include <WiFiUdp.h>
#include <ArduinoOTA.h>


void ota_setup() { void ota_setup() {
ArduinoOTA.setPort(8266); ArduinoOTA.setPort(8266);
}); });
ArduinoOTA.begin(); ArduinoOTA.begin();


}
}

+ 9
- 0
templ_platformio_ini View File

board = nodemcuv2 board = nodemcuv2
framework = arduino 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.filesystem = littlefs
board_build.ldscript = eagle.flash.4m1m.ld board_build.ldscript = eagle.flash.4m1m.ld
extra_scripts = pre:create_gz_files.py extra_scripts = pre:create_gz_files.py

Loading…
Cancel
Save