YAML: avoid forcing to add parser for non-existing old format v220 (#2068)

This commit is contained in:
Raphael Coeffic
2022-06-21 06:45:35 +02:00
committed by GitHub
parent 9f24e2d131
commit c2dc4e6c0b
4 changed files with 45 additions and 5 deletions
@@ -33,6 +33,8 @@
#include "../../../timers.h"
#include "../../../pulses/multi.h"
#if STORAGE_CONVERSIONS < 221
namespace yaml_conv_220 {
#include "yaml_datastructs_funcs.cpp"
@@ -77,3 +79,11 @@ static_assert(MAX_STR > MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN,
"MAX_STR > MAX_RADIODATA_MODELDATA_PARTIALMODEL_STR_LEN");
};
#else
namespace yaml_conv_220 {
#include "yaml_datastructs_funcs.cpp"
};
#endif // STORAGE_CONVERSIONS