Write 'semver' tag with the current firmware version (#1695)

And remove `version`/`variant`.
This commit is contained in:
Raphael Coeffic
2022-03-20 19:18:01 +10:00
committed by GitHub
parent 76ae89d2f2
commit 610326f216
25 changed files with 69 additions and 108 deletions
@@ -24,6 +24,7 @@
#include "yaml_tree_walker.h"
#include "pulses/multi.h"
#include "stamp.h"
// Use definitions from v220 conversions as long as nothing changes
@@ -136,6 +137,12 @@ static inline void check_yaml_funcs()
#endif
}
static bool w_semver(void* user, uint8_t* data, uint32_t bitoffs,
yaml_writer_func wf, void* opaque)
{
return wf(opaque, VERSION, sizeof(VERSION)-1);
}
static bool w_board(void* user, uint8_t* data, uint32_t bitoffs,
yaml_writer_func wf, void* opaque)
{