TODO: support conversions from BIN to YAML.
This commit is contained in:
Raphael Coeffic
2021-11-10 11:06:59 +01:00
parent ce75a1a48d
commit 6c73b5ba0a
5 changed files with 42 additions and 24 deletions
@@ -22,7 +22,7 @@
#include "opentx.h"
#include "conversions.h"
#if defined(COLORLCD) && !defined(SDCARD_YAML)
#if defined(COLORLCD)
#include "storage/modelslist.h"
#include "storage/sdcard_common.h"
@@ -99,7 +99,10 @@ void convertRadioData(int version)
char path[256];
getModelPath(path, filename);
error = writeFile(path, (uint8_t *)&g_model, sizeof(g_model));
//TODO: if YAML is used, output to YAML directly
error = writeFileBin(path, (uint8_t *)&g_model, sizeof(g_model));
//TODO: what should be done with this error?
}