chore: Remove some bloat, reduce firmware size (#4288)

This commit is contained in:
Raphael Coeffic
2023-11-08 22:05:54 +10:00
committed by GitHub
parent aa184cec5e
commit 373bb33f4b
12 changed files with 60 additions and 190 deletions
+5 -3
View File
@@ -75,7 +75,8 @@ int luaDir(lua_State* L)
FRESULT res = f_opendir(dir, path);
if (res != FR_OK) {
printf("luaDir cannot open %s\n", path);
TRACE("luaDir cannot open %s\n", path);
return 0;
}
lua_pushcclosure(L, dir_iter, 1);
@@ -129,7 +130,7 @@ int luaFstat(lua_State* L)
res = f_stat(path, &info);
if (res != FR_OK) {
printf("luaFstat cannot open %s\n", path);
TRACE("luaFstat cannot open %s\n", path);
return 0;
}
@@ -174,7 +175,8 @@ int luaDelete(lua_State* L)
FRESULT res = f_unlink(filename);
if (res != FR_OK) {
printf("luaDelete cannot delete file/folder %s\n", filename);
TRACE("luaDelete cannot delete file/folder %s\n", filename);
return 0;
}
lua_pushunsigned(L, res);