treewide: fix warnings

This commit is contained in:
Álvaro Fernández Rojas 2023-06-06 16:40:33 +02:00
parent 60f8c629bf
commit 82afcbedc0
5 changed files with 43 additions and 18 deletions

View file

@ -372,7 +372,6 @@ bool ShadeConfigFile::getAppVersion(appver_t &ver) {
char app[15];
if(!LittleFS.exists("/appversion")) return false;
File f = LittleFS.open("/appversion", "r");
size_t fsize = f.size();
memset(app, 0x00, sizeof(app));
f.read((uint8_t *)app, sizeof(app) - 1);
f.close();