Release v5.0.0 #657

Merged
gaisser merged 578 commits from development into master 2022-07-25 15:05:57 +02:00
2 changed files with 12 additions and 5 deletions
Showing only changes of commit e684680d60 - Show all commits

View File

@ -1,12 +1,22 @@
#include "version.h"
#include "fsfw/FSFWVersion.h"
#include <cstdio>
#ifdef major
#undef major
#endif
#ifdef minor
#undef minor
#endif
const fsfw::Version fsfw::FSFW_VERSION = {FSFW_VERSION_MAJOR, FSFW_VERSION_MINOR,
FSFW_VERSION_REVISION};
fsfw::Version::Version(uint32_t major, uint32_t minor, uint32_t revision)
: major(major), minor(minor), revision(revision) {}
void fsfw::Version::getVersion(char* str, size_t maxLen) const {
snprintf(str, maxLen, "%d.%d.%d", major, minor, revision);
}

View File

@ -7,7 +7,6 @@
#include <iostream>
#endif
#include <cstdint>
#include <cstdio>
namespace fsfw {
@ -53,9 +52,7 @@ class Version {
* @param str
* @param maxLen
*/
void getVersion(char* str, size_t maxLen) const {
snprintf(str, maxLen, "%d.%d.%d", major, minor, revision);
}
void getVersion(char* str, size_t maxLen) const;
};
extern const fsfw::Version FSFW_VERSION;