Fix MNTM-DEV git hash formatting (#104)

* Fix max length of git hash

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

* Found it...

* Revert "Found it..."

This reverts commit c7cb790716.

---------

Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com>
This commit is contained in:
Zachary Weiss
2024-04-21 21:44:06 -04:00
committed by GitHub
parent 1cac0e6e0e
commit 9d4a6e6788

View File

@@ -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 {