Skip to content

Commit

Permalink
Merge branch 'dev' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Aug 17, 2024
2 parents ac12131 + 889c80e commit acdaf8c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* OFW: iButton ID writing (Enable ID writing for ds1971 and ds1996)
* Apps: **Check out more Apps updates and fixes by following** [this link](https://github.com/xMasterX/all-the-plugins/commits/dev)
## Other changes
* Archive: Fix BadUSB favourite path check
* Settings: Show free flash amount in internal storage info (by @Willy-JL)
* Misc: Fix typo in comment in QueueTools.py (by @eltociear | PR #785)
* OFW PR 3840: GUI: NumberInput small improvements (by @Willy-JL)
* OFW PR 3838: SubGhz: Fix RPC status for ButtonRelease event (by @Skorpionm)
Expand Down
4 changes: 2 additions & 2 deletions applications/main/archive/helpers/archive_files.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ void archive_set_file_type(ArchiveFile_t* file, const char* path, bool is_folder
if((known_ext[i][0] == '?') || (known_ext[i][0] == '*')) continue;
if(furi_string_end_withi(file->path, known_ext[i])) {
if((i == ArchiveFileTypeBadUsb) || (i == ArchiveFileTypeSubGhzRemote)) {
if(furi_string_search(
file->path, archive_get_default_path(ArchiveTabBadUsb)) == 0) {
if((furi_string_search(file->path, EXT_PATH("badusb")) == 0) ||
(furi_string_search(file->path, ANY_PATH("badusb")) == 0)) {
file->type = ArchiveFileTypeBadUsb;
return; // *.txt file is a BadUSB script only if it is in BadUSB folder
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "../storage_settings.h"
#include <furi_hal_version.h>
#include <furi_hal_flash.h>

static void
storage_settings_scene_internal_info_dialog_callback(DialogExResult result, void* context) {
Expand Down Expand Up @@ -27,10 +28,20 @@ void storage_settings_scene_internal_info_on_enter(void* context) {
} else {
furi_string_printf(
app->text_string,
"Name: %s\nType: Virtual\nTotal: %lu KiB\nFree: %lu KiB",
"Name: %s\nType: Virtual (/.int on SD)\nTotal: %lu KiB\nFree: %lu KiB\n",
furi_hal_version_get_name_ptr() ? furi_hal_version_get_name_ptr() : "Unknown",
(uint32_t)(total_space / 1024),
(uint32_t)(free_space / 1024));

uint32_t free_flash =
furi_hal_flash_get_free_end_address() - furi_hal_flash_get_free_start_address();
if(free_flash < 1024) {
furi_string_cat_printf(app->text_string, "Flash: %lu B free", free_flash);
} else {
furi_string_cat_printf(
app->text_string, "Flash: %.2f KiB free", (double)free_flash / 1024);
}

dialog_ex_set_text(
dialog_ex, furi_string_get_cstr(app->text_string), 4, 4, AlignLeft, AlignTop);
}
Expand Down

0 comments on commit acdaf8c

Please sign in to comment.