diff --git a/Core/Inc/git_rev.h b/Core/Inc/git_rev.h index 39c6979..bc979d1 100644 --- a/Core/Inc/git_rev.h +++ b/Core/Inc/git_rev.h @@ -7,6 +7,6 @@ // Auto generated header file containing the last git revision -#define GIT_HASH "f4e1b25" +#define GIT_HASH "b7b396d" #endif //FLOATPUMP_GIT_REVISION_TEMPLATE_H \ No newline at end of file diff --git a/Middlewares/floatpump/Inc/Menu.h b/Middlewares/floatpump/Inc/Menu.h index b695208..82d991d 100644 --- a/Middlewares/floatpump/Inc/Menu.h +++ b/Middlewares/floatpump/Inc/Menu.h @@ -51,7 +51,16 @@ namespace floatpump { std::string m_name; bool m_entered = false; - auto buildString(std::string appendix) -> std::string; + auto buildString(std::string appendix) -> std::string { + int spaces = 19 - (m_name.length() + appendix.length()); + std::string spacer; + if (spaces > 0) + spacer.append(spaces, ' '); + else if (spaces < 0) + return "ERROR"; + + return {m_name + spacer + appendix}; + } }; diff --git a/Middlewares/floatpump/Src/Menu.cpp b/Middlewares/floatpump/Src/Menu.cpp index 477ae73..0c9b313 100644 --- a/Middlewares/floatpump/Src/Menu.cpp +++ b/Middlewares/floatpump/Src/Menu.cpp @@ -111,18 +111,4 @@ namespace floatpump::menu { return nullptr; } } - - - - template - auto MenuEntry::buildString(std::string appendix) -> std::string { - int spaces = 19 - (m_name.length() + appendix.length()); - std::string spacer; - if (spaces > 0) - spacer.append(spaces, ' '); - else if (spaces < 0) - return "ERROR"; - - return {m_name + spacer + appendix}; - } } \ No newline at end of file