mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-14 00:37:21 +00:00
Merge branch 'dev' into release
This commit is contained in:
commit
acdaf8ca9d
3 changed files with 16 additions and 3 deletions
|
@ -13,6 +13,8 @@
|
||||||
* OFW: iButton ID writing (Enable ID writing for ds1971 and ds1996)
|
* 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)
|
* Apps: **Check out more Apps updates and fixes by following** [this link](https://github.com/xMasterX/all-the-plugins/commits/dev)
|
||||||
## Other changes
|
## 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)
|
* Misc: Fix typo in comment in QueueTools.py (by @eltociear | PR #785)
|
||||||
* OFW PR 3840: GUI: NumberInput small improvements (by @Willy-JL)
|
* OFW PR 3840: GUI: NumberInput small improvements (by @Willy-JL)
|
||||||
* OFW PR 3838: SubGhz: Fix RPC status for ButtonRelease event (by @Skorpionm)
|
* OFW PR 3838: SubGhz: Fix RPC status for ButtonRelease event (by @Skorpionm)
|
||||||
|
|
|
@ -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((known_ext[i][0] == '?') || (known_ext[i][0] == '*')) continue;
|
||||||
if(furi_string_end_withi(file->path, known_ext[i])) {
|
if(furi_string_end_withi(file->path, known_ext[i])) {
|
||||||
if((i == ArchiveFileTypeBadUsb) || (i == ArchiveFileTypeSubGhzRemote)) {
|
if((i == ArchiveFileTypeBadUsb) || (i == ArchiveFileTypeSubGhzRemote)) {
|
||||||
if(furi_string_search(
|
if((furi_string_search(file->path, EXT_PATH("badusb")) == 0) ||
|
||||||
file->path, archive_get_default_path(ArchiveTabBadUsb)) == 0) {
|
(furi_string_search(file->path, ANY_PATH("badusb")) == 0)) {
|
||||||
file->type = ArchiveFileTypeBadUsb;
|
file->type = ArchiveFileTypeBadUsb;
|
||||||
return; // *.txt file is a BadUSB script only if it is in BadUSB folder
|
return; // *.txt file is a BadUSB script only if it is in BadUSB folder
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "../storage_settings.h"
|
#include "../storage_settings.h"
|
||||||
#include <furi_hal_version.h>
|
#include <furi_hal_version.h>
|
||||||
|
#include <furi_hal_flash.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
storage_settings_scene_internal_info_dialog_callback(DialogExResult result, void* context) {
|
storage_settings_scene_internal_info_dialog_callback(DialogExResult result, void* context) {
|
||||||
|
@ -27,10 +28,20 @@ void storage_settings_scene_internal_info_on_enter(void* context) {
|
||||||
} else {
|
} else {
|
||||||
furi_string_printf(
|
furi_string_printf(
|
||||||
app->text_string,
|
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",
|
furi_hal_version_get_name_ptr() ? furi_hal_version_get_name_ptr() : "Unknown",
|
||||||
(uint32_t)(total_space / 1024),
|
(uint32_t)(total_space / 1024),
|
||||||
(uint32_t)(free_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_set_text(
|
||||||
dialog_ex, furi_string_get_cstr(app->text_string), 4, 4, AlignLeft, AlignTop);
|
dialog_ex, furi_string_get_cstr(app->text_string), 4, 4, AlignLeft, AlignTop);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue