AP_Common: add firmware string without git hash.

This commit is contained in:
Andy Piper 2021-06-01 21:40:51 +01:00 committed by Andrew Tridgell
parent 96acb46fbf
commit 88bbec01b0
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ public:
const uint32_t os_sw_version;
const char *fw_string;
const char *fw_hash_str;
const char *fw_short_string;
const char *middleware_name;
const char *middleware_hash_str;
const char *os_name;

View File

@ -49,6 +49,7 @@ const AP_FWVersion AP_FWVersion::fwver{
.fw_string = THISFIRMWARE " (" GIT_VERSION ")",
.fw_hash_str = GIT_VERSION,
#endif
.fw_short_string = THISFIRMWARE,
.middleware_name = nullptr,
.middleware_hash_str = nullptr,
#ifdef CHIBIOS_GIT_VERSION