Store version in the bootloader. Debug code.

This commit is contained in:
Szczepan Zalega
2019-08-24 08:51:17 +02:00
parent 7fddd58704
commit cb13fb65de
5 changed files with 30 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
#include "version.h"
static const version_t firmware_version __attribute__ ((section (".flag"))) __attribute__ ((__used__)) = {
const version_t firmware_version __attribute__ ((section (".flag"))) __attribute__ ((__used__)) = {
.major = SOLO_VERSION_MAJ,
.minor = SOLO_VERSION_MIN,
.patch = SOLO_VERSION_PATCH,