mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-26 01:48:10 -07:00
Storage: force mount (#3033)
* Storage: count opened files * Storage: sd mount * Storage: prompt to mount SD card if not mounted * F18: update API * F18: update API version * Fix logger naming scheme * Storage: storage_files_count -> storage_open_files_count Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <furi.h>
|
||||
#include <algorithm>
|
||||
|
||||
#define TAG "hashtable_api"
|
||||
#define TAG "ApiHashtable"
|
||||
|
||||
bool elf_resolve_from_hashtable(
|
||||
const ElfApiInterface* interface,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#define BUFFER_SIZE 512
|
||||
|
||||
#define TAG "fap_assets"
|
||||
#define TAG "FapAssets"
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "elf_api_interface.h"
|
||||
#include "../api_hashtable/api_hashtable.h"
|
||||
|
||||
#define TAG "elf"
|
||||
#define TAG "Elf"
|
||||
|
||||
#define ELF_NAME_BUFFER_LEN 32
|
||||
#define SECTION_OFFSET(e, n) ((e)->section_table + (n) * sizeof(Elf32_Shdr))
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <furi.h>
|
||||
|
||||
#define TAG "libmgr"
|
||||
#define TAG "PluginManager"
|
||||
|
||||
ARRAY_DEF(FlipperApplicationList, FlipperApplication*, M_PTR_OPLIST)
|
||||
#define M_OPL_FlipperApplicationList_t() ARRAY_OPLIST(FlipperApplicationList, M_PTR_OPLIST)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#define LFRFID_RAW_FILE_MAGIC 0x4C464952
|
||||
#define LFRFID_RAW_FILE_VERSION 1
|
||||
|
||||
#define TAG "RFID RAW File"
|
||||
#define TAG "LfRfidRawFile"
|
||||
|
||||
typedef struct {
|
||||
uint32_t magic;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#define RFID_DATA_BUFFER_SIZE 2048
|
||||
#define READ_DATA_BUFFER_COUNT 4
|
||||
|
||||
#define TAG_EMULATE "RAW EMULATE"
|
||||
#define TAG_EMULATE "RawEmulate"
|
||||
|
||||
// emulate mode
|
||||
typedef struct {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "tools/varint_pair.h"
|
||||
#include "tools/bit_lib.h"
|
||||
|
||||
#define TAG "LFRFIDWorker"
|
||||
#define TAG "LfRfidWorker"
|
||||
|
||||
/**
|
||||
* if READ_DEBUG_GPIO is defined:
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "furi_hal_nfc.h"
|
||||
#include <furi_hal_random.h>
|
||||
|
||||
#define TAG "SLIX"
|
||||
#define TAG "Slix"
|
||||
|
||||
ReturnCode slix2_read_nxp_sysinfo(FuriHalNfcDevData* nfc_data, NfcVData* nfcv_data) {
|
||||
furi_assert(nfc_data);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <furi_hal.h>
|
||||
#include "../cc1101_configs.h"
|
||||
|
||||
#define TAG "SubGhzDeviceCC1101Int"
|
||||
#define TAG "SubGhzDeviceCc1101Int"
|
||||
|
||||
static bool subghz_device_cc1101_int_interconnect_is_frequency_valid(uint32_t frequency) {
|
||||
bool ret = furi_hal_subghz_is_frequency_valid(frequency);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocoAlutech_at_4n"
|
||||
#define TAG "SubGhzProtocoAlutechAt4n"
|
||||
|
||||
#define SUBGHZ_NO_ALUTECH_AT_4N_RAINBOW_TABLE 0xFFFFFFFF
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "../blocks/math.h"
|
||||
|
||||
// protocol BERNER / ELKA / TEDSEN / TELETASTER
|
||||
#define TAG "SubGhzProtocolBETT"
|
||||
#define TAG "SubGhzProtocolBett"
|
||||
|
||||
#define DIP_P 0b11 //(+)
|
||||
#define DIP_O 0b10 //(0)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <lib/toolbox/stream/stream.h>
|
||||
#include <lib/flipper_format/flipper_format_i.h>
|
||||
|
||||
#define TAG "SubGhzProtocolBinRAW"
|
||||
#define TAG "SubGhzProtocolBinRaw"
|
||||
|
||||
//change very carefully, RAM ends at the most inopportune moment
|
||||
#define BIN_RAW_BUF_RAW_SIZE 2048
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define TAG "SubGhzProtocolCAME"
|
||||
#define TAG "SubGhzProtocolCame"
|
||||
#define CAME_12_COUNT_BIT 12
|
||||
#define CAME_24_COUNT_BIT 24
|
||||
#define PRASTEL_COUNT_BIT 25
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define TAG "SubGhzProtocolCAME_Twee"
|
||||
#define TAG "SubGhzProtocolCameTwee"
|
||||
|
||||
#define DIP_PATTERN "%c%c%c%c%c%c%c%c%c%c"
|
||||
#define CNT_TO_DIP(dip) \
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocolChamb_Code"
|
||||
#define TAG "SubGhzProtocolChambCode"
|
||||
|
||||
#define CHAMBERLAIN_CODE_BIT_STOP 0b0001
|
||||
#define CHAMBERLAIN_CODE_BIT_1 0b0011
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocolFaacSHL"
|
||||
#define TAG "SubGhzProtocolFaacShl"
|
||||
|
||||
static const SubGhzBlockConst subghz_protocol_faac_slh_const = {
|
||||
.te_short = 255,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define TAG "SubGhzProtocolHoltek_HT12X"
|
||||
#define TAG "SubGhzProtocolHoltekHt12x"
|
||||
|
||||
#define DIP_PATTERN "%c%c%c%c%c%c%c%c"
|
||||
#define CNT_TO_DIP(dip) \
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocolHoneywellWDB"
|
||||
#define TAG "SubGhzProtocolHoneywellWdb"
|
||||
|
||||
/*
|
||||
*
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocolHormannHSM"
|
||||
#define TAG "SubGhzProtocolHormannHsm"
|
||||
|
||||
#define HORMANN_HSM_PATTERN 0xFF000000003
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocol_iDo_117/111"
|
||||
#define TAG "SubGhzProtocolIdo117/111"
|
||||
|
||||
static const SubGhzBlockConst subghz_protocol_ido_const = {
|
||||
.te_short = 450,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocoKIA"
|
||||
#define TAG "SubGhzProtocoKia"
|
||||
|
||||
static const SubGhzBlockConst subghz_protocol_kia_const = {
|
||||
.te_short = 250,
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocoKingGates_stylo_4k"
|
||||
#define TAG "SubGhzProtocoKingGatesStylo4k"
|
||||
|
||||
static const SubGhzBlockConst subghz_protocol_kinggates_stylo_4k_const = {
|
||||
.te_short = 400,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocolNiceFLO"
|
||||
#define TAG "SubGhzProtocolNiceFlo"
|
||||
|
||||
static const SubGhzBlockConst subghz_protocol_nice_flo_const = {
|
||||
.te_short = 700,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../blocks/generic.h"
|
||||
#include "../blocks/math.h"
|
||||
|
||||
#define TAG "SubGhzProtocolPhoenix_V2"
|
||||
#define TAG "SubGhzProtocolPhoenixV2"
|
||||
|
||||
//transmission only static mode
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <flipper_format/flipper_format_i.h>
|
||||
#include <lib/toolbox/stream/stream.h>
|
||||
|
||||
#define TAG "SubGhzProtocolRAW"
|
||||
#define TAG "SubGhzProtocolRaw"
|
||||
#define SUBGHZ_DOWNLOAD_MAX_SIZE 512
|
||||
|
||||
static const SubGhzBlockConst subghz_protocol_raw_const = {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* https://github.com/merbanan/rtl_433/blob/master/src/devices/secplus_v1.c
|
||||
*/
|
||||
|
||||
#define TAG "SubGhzProtocoSecPlus_v1"
|
||||
#define TAG "SubGhzProtocoSecPlusV1"
|
||||
|
||||
#define SECPLUS_V1_BIT_ERR -1 //0b0000
|
||||
#define SECPLUS_V1_BIT_0 0 //0b0001
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* https://github.com/merbanan/rtl_433/blob/master/src/devices/secplus_v2.c
|
||||
*/
|
||||
|
||||
#define TAG "SubGhzProtocoSecPlus_v2"
|
||||
#define TAG "SubGhzProtocoSecPlusV2"
|
||||
|
||||
#define SECPLUS_V2_HEADER 0x3C0000000000
|
||||
#define SECPLUS_V2_HEADER_MASK 0xFFFF3C0000000000
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define TAG "SubGhzProtocolSMC5326"
|
||||
#define TAG "SubGhzProtocolSmc5326"
|
||||
|
||||
#define DIP_P 0b11 //(+)
|
||||
#define DIP_O 0b10 //(0)
|
||||
|
||||
Reference in New Issue
Block a user