Fix cppcheck errors

This commit is contained in:
Dave Allie 2025-12-22 00:58:09 +11:00
parent e069a73339
commit fcf37907c8
No known key found for this signature in database
GPG Key ID: F2FDDB3AD8D0276F
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ framework = arduino
monitor_speed = 115200 monitor_speed = 115200
upload_speed = 921600 upload_speed = 921600
check_tool = cppcheck check_tool = cppcheck
check_flags = --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --inline-suppr check_flags = --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr
check_skip_packages = yes check_skip_packages = yes
board_upload.flash_size = 16MB board_upload.flash_size = 16MB

View File

@ -7,7 +7,7 @@ class OtaUpdater {
bool updateAvailable = false; bool updateAvailable = false;
std::string latestVersion; std::string latestVersion;
std::string otaUrl; std::string otaUrl;
size_t otaSize; size_t otaSize = 0;
public: public:
enum OtaUpdaterError { enum OtaUpdaterError {