mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user