Compare commits

..

No commits in common. "0e9f37832b9e37309a86bfae054dd81b8d1a2995" and "69abcf2638263bb37922a7f730711a27031dd593" have entirely different histories.

3 changed files with 2 additions and 6 deletions

View File

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

View File

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

View File

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