1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

formatting

This commit is contained in:
MX
2024-07-15 20:02:45 +03:00
parent deeb9dcb15
commit 726cb770d0
488 changed files with 3301 additions and 3288 deletions

View File

@@ -135,4 +135,4 @@ void buffer_stream_reset(BufferStream* buffer_stream) {
buffer_reset(&buffer_stream->buffers[i]);
}
FURI_CRITICAL_EXIT();
}
}

View File

@@ -76,4 +76,4 @@ void dir_walk_close(DirWalk* dir_walk);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -6,15 +6,15 @@
#ifdef LEVEL_DURATION_BIG
#define LEVEL_DURATION_RESET 0U
#define LEVEL_DURATION_LEVEL_LOW 1U
#define LEVEL_DURATION_RESET 0U
#define LEVEL_DURATION_LEVEL_LOW 1U
#define LEVEL_DURATION_LEVEL_HIGH 2U
#define LEVEL_DURATION_WAIT 3U
#define LEVEL_DURATION_RESERVED 0x800000U
#define LEVEL_DURATION_WAIT 3U
#define LEVEL_DURATION_RESERVED 0x800000U
typedef struct {
uint32_t duration : 30;
uint8_t level : 2;
uint8_t level : 2;
} LevelDuration;
static inline LevelDuration level_duration_make(bool level, uint32_t duration) {
@@ -54,7 +54,7 @@ static inline uint32_t level_duration_get_duration(LevelDuration level_duration)
#else
#define LEVEL_DURATION_RESET 0U
#define LEVEL_DURATION_RESET 0U
#define LEVEL_DURATION_RESERVED 0x800000U
typedef int32_t LevelDuration;

View File

@@ -1,10 +1,10 @@
#pragma once
#include <m-core.h>
#define M_INIT_DUP(a) ((a) = strdup(""))
#define M_INIT_DUP(a) ((a) = strdup(""))
#define M_INIT_SET_DUP(a, b) ((a) = strdup(b))
#define M_SET_DUP(a, b) (free((void*)a), (a) = strdup(b))
#define M_CLEAR_DUP(a) (free((void*)a))
#define M_SET_DUP(a, b) (free((void*)a), (a) = strdup(b))
#define M_CLEAR_DUP(a) (free((void*)a))
#define M_CSTR_DUP_OPLIST \
(INIT(M_INIT_DUP), \

View File

@@ -55,4 +55,4 @@ bool md5_string_calc_file(File* file, const char* path, FuriString* output, FS_E
}
return result;
}
}

View File

@@ -48,4 +48,4 @@ void name_generator_make_detailed_datetime(
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -6,7 +6,7 @@
extern "C" {
#endif
#define PRETTY_FORMAT_FONT_BOLD "\e#"
#define PRETTY_FORMAT_FONT_BOLD "\e#"
#define PRETTY_FORMAT_FONT_MONOSPACE "\e*"
/**

View File

@@ -20,4 +20,4 @@ void profiler_dump(Profiler* profiler);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -44,4 +44,4 @@ typedef struct {
ProtocolRenderData render_data;
ProtocolRenderData render_brief_data;
ProtocolWriteData write_data;
} ProtocolBase;
} ProtocolBase;

View File

@@ -245,4 +245,4 @@ bool protocol_dict_get_write_data(ProtocolDict* dict, size_t protocol_index, voi
furi_check(fn);
return fn(dict->data[protocol_index], data);
}
}

View File

@@ -9,7 +9,7 @@ typedef struct ProtocolDict ProtocolDict;
typedef int32_t ProtocolId;
#define PROTOCOL_NO (-1)
#define PROTOCOL_NO (-1)
#define PROTOCOL_ALL_FEATURES (0xFFFFFFFF)
ProtocolDict* protocol_dict_alloc(const ProtocolBase** protocols, size_t protocol_count);

View File

@@ -114,4 +114,4 @@ void pulse_joiner_pop_pulse(PulseJoiner* pulse_joiner, size_t* period, size_t* p
break;
}
}
}
}

View File

@@ -43,4 +43,4 @@ void pulse_joiner_pop_pulse(PulseJoiner* pulse_joiner, size_t* period, size_t* p
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -6,11 +6,11 @@
#include <toolbox/path.h>
#include <toolbox/compress.h>
#define TAG "TarArch"
#define MAX_NAME_LEN 255
#define TAG "TarArch"
#define MAX_NAME_LEN 255
#define FILE_BLOCK_SIZE 512
#define FILE_OPEN_NTRIES 10
#define FILE_OPEN_NTRIES 10
#define FILE_OPEN_RETRY_DELAY 25
TarOpenMode tar_archive_get_mode_for_path(const char* path) {
@@ -397,7 +397,7 @@ bool tar_archive_unpack_to(
FURI_LOG_I(TAG, "Restoring '%s'", destination);
return (mtar_foreach(&archive->tar, archive_extract_foreach_cb, &param) == MTAR_ESUCCESS);
};
}
bool tar_archive_add_file(
TarArchive* archive,

View File

@@ -32,4 +32,4 @@ size_t varint_int32_length(int32_t value);
#ifdef __cplusplus
}
#endif
#endif