Skip to content

Commit

Permalink
Storage: fixed internal info if name is null (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZlo13 committed Aug 9, 2021
1 parent 0a97d69 commit c799fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void storage_settings_scene_internal_info_on_enter(void* context) {
string_printf(
app->text_string,
"Label: %s\nType: LittleFS\n%lu KB total\n%lu KB free",
furi_hal_version_get_name_ptr(),
furi_hal_version_get_name_ptr() ? furi_hal_version_get_name_ptr() : "Unknown",
(uint32_t)(total_space / 1024),
(uint32_t)(free_space / 1024));
dialog_ex_set_text(
Expand Down
2 changes: 1 addition & 1 deletion applications/storage/storage-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void storage_cli_info(Cli* cli, string_t path) {
} else {
printf(
"Label: %s\r\nType: LittleFS\r\n%lu KB total\r\n%lu KB free\r\n",
furi_hal_version_get_name_ptr(),
furi_hal_version_get_name_ptr() ? furi_hal_version_get_name_ptr() : "Unknown",
(uint32_t)(total_space / 1024),
(uint32_t)(free_space / 1024));
}
Expand Down

0 comments on commit c799fcf

Please sign in to comment.