Write 'semver' tag with the current firmware version (#1695)
And remove `version`/`variant`.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user