check if path is existing before saving model

This commit is contained in:
Raphael Coeffic
2021-04-09 13:11:56 +02:00
parent d7e2e57cdb
commit 7931937f06
+2
View File
@@ -60,6 +60,8 @@ const char * writeModel()
{
char path[256];
getModelPath(path, g_eeGeneral.currModelFilename);
sdCheckAndCreateDirectory(MODELS_PATH);
return writeFile(path, (uint8_t *)&g_model, sizeof(g_model));
}