diff --git a/Cyphal/cyphal_subscribers.cpp b/Cyphal/cyphal_subscribers.cpp index c2be21f..9a70ca0 100644 --- a/Cyphal/cyphal_subscribers.cpp +++ b/Cyphal/cyphal_subscribers.cpp @@ -8,13 +8,22 @@ #include "params.hpp" #include "algorithms.hpp" #include "storage.h" -#include "git_software_version.h" #ifndef GIT_HASH - #define GIT_HASH 0xBADC0FFEEFFF + #define GIT_HASH 0xBADC0FFEE000 #endif -#if GIT_HASH == 0xBADC0FFEEFFF - #pragma message "GIT_HASH is not provided" +#if GIT_HASH == 0xBADC0FFEE000 + #warning "GIT_HASH has not been provided!" +#endif + +#ifndef APP_VERSION_MAJOR + #warning "APP_VERSION_MAJOR has been assigned to 0 by default." + #define APP_VERSION_MAJOR 0 +#endif + +#ifndef APP_VERSION_MINOR + #warning "APP_VERSION_MINOR has been assigned to 0 by default." + #define APP_VERSION_MINOR 0 #endif namespace cyphal { diff --git a/README.md b/README.md index ca0d2bc..2d6c4e9 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ It is nice to fill GetInfo with an information specific to your application: ||| |-|-| -| Software version | Defined on the compile time with `APP_VERSION_MAJOR` define. | +| Software version | Defined on the compile time with `APP_VERSION_MAJOR` and `APP_VERSION_MINOR` defines. | | Hardware version | Should be defined on the initialization time. | | Certificate of authenticity | Not supported by this example yet. | | Unique ID | It is expected to provide `HAL_GetUIDw0`, `HAL_GetUIDw1` and `HAL_GetUIDw2`. By default, it is provided by STM32 HAL. |