diff --git a/radio/src/targets/common/arm/stm32/bootloader/bin_files.h b/radio/src/targets/common/arm/stm32/bootloader/bin_files.h index bda6b2e85..a457eaae5 100644 --- a/radio/src/targets/common/arm/stm32/bootloader/bin_files.h +++ b/radio/src/targets/common/arm/stm32/bootloader/bin_files.h @@ -80,10 +80,13 @@ FRESULT openBinFile(MemoryType mt, unsigned int index); struct VersionTag { - char flavour[8]; + char flavour[11]; const char* version; const char* fork; }; +// Ensure flavour can hold FLAVOUR defined in target cmakefile +static_assert(sizeof(((VersionTag){}).flavour) >= sizeof(FLAVOUR), "VersionTag flavour size too small"); + // Can be called right after openBinFile() to extract the version information // from a firmware file