alex.kopachov 1 год назад
Родитель
Сommit
ebb5035760
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      cli/plugins/version/version.c

+ 7 - 2
cli/plugins/version/version.c

@@ -8,7 +8,12 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) {
     UNUSED(cli);
     UNUSED(cli);
     UNUSED(plugin_state);
     UNUSED(plugin_state);
     TOTP_CLI_PRINTF(
     TOTP_CLI_PRINTF(
-        "%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\r\n",
+        "%" PRIu8 ".%" PRIu8 ".%" PRIu8 
+#ifdef TOTP_APP_VERSION_META
+        "+"
+        TOTP_APP_VERSION_META
+#endif
+        "\r\n",
         TOTP_APP_VERSION_MAJOR,
         TOTP_APP_VERSION_MAJOR,
         TOTP_APP_VERSION_MINOR,
         TOTP_APP_VERSION_MINOR,
         TOTP_APP_VERSION_PATCH);
         TOTP_APP_VERSION_PATCH);
@@ -24,4 +29,4 @@ static const FlipperAppPluginDescriptor plugin_descriptor = {
 
 
 const FlipperAppPluginDescriptor* totp_cli_version_plugin_ep() {
 const FlipperAppPluginDescriptor* totp_cli_version_plugin_ep() {
     return &plugin_descriptor;
     return &plugin_descriptor;
-}
+}