Compare commits

..

3 Commits

Author SHA1 Message Date
0e9f37832b woodpecker: only fail on high defects
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-03-03 18:47:40 +01:00
217a7024b9 platform: fix static check fix 2023-03-03 18:46:23 +01:00
f9432d89bf check: reduce verbosity, exclude libs 2023-03-03 18:45:21 +01:00
3 changed files with 6 additions and 2 deletions

View File

@ -16,4 +16,4 @@ pipeline:
check:
image: python
- pip install -U platformio
- pio check -e esp8266 -e esp32 --skip-packages --fail-on-defect medium --severity medium --severity high --severity low --pattern 'src/*' --pattern 'lib/*'
- pio check -e esp8266 -e esp32 --skip-packages --severity medium --severity high --pattern 'src' --pattern 'lib/Figments' --fail-on-defect high

View File

@ -98,6 +98,8 @@ board_build.filesystem = littlefs
platform = espressif32
board = featheresp32
framework = arduino
check_flags =
cppcheck: --inline-suppr --suppress=*:*/.pio/*
src_build_flags =
${common_env_data.src_build_flags}
${config_nocolor.src_build_flags}
@ -116,6 +118,8 @@ extends = env:esp8266
board = esp12e
[env:esp8266]
check_flags =
cppcheck: --inline-suppr --suppress=*:*/.pio/*
platform = espressif8266
board = huzzah
framework = arduino

View File

@ -181,7 +181,7 @@ Platform::getLocalTime(struct tm* timedata)
return false;
#elif defined(BOARD_ESP32)
time_t rawtime;
memset(&rawtime, sizeof(rawtime), 0);
memset(&rawtime, 0, sizeof(rawtime));
time(&rawtime);
(*timedata) = (*localtime(&rawtime));
return (timedata->tm_year > (2016-1990));