Skip to content

Commit

Permalink
Fix MNTM-DEV git hash formatting (#104)
Browse files Browse the repository at this point in the history
* Fix max length of git hash

* Fix editor auto-reformat that causes it to fail lint

* Found it...

* Revert "Found it..."

This reverts commit c7cb790.

---------

Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com>
  • Loading branch information
zacharyweiss and Willy-JL authored Apr 22, 2024
1 parent 1cac0e6 commit 9d4a6e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/main/momentum_app/momentum_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ MomentumApp* momentum_app_alloc() {
if(furi_string_start_with(app->version_tag, "mntm-dev")) {
furi_string_set(app->version_tag, "MNTM-DEV ");
const char* sha = version_get_githash(NULL);
for(size_t i = 0; i < strlen(sha); ++i) {
const uint8_t sha_len = strlen(sha) <= 7 ? strlen(sha) : 7;
for(size_t i = 0; i < sha_len; ++i) {
furi_string_push_back(app->version_tag, toupper(sha[i]));
}
} else {
Expand Down

0 comments on commit 9d4a6e6

Please sign in to comment.