mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
[FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false * clang-format: InsertNewlineAtEOF: true * clang-format: Standard: c++20 * clang-format: AlignConsecutiveBitFields * clang-format: AlignConsecutiveMacros * clang-format: RemoveParentheses: ReturnStatement * clang-format: RemoveSemicolon: true * Restored RemoveParentheses: Leave, retained general changes for it * formatting: fixed logging TAGs * Formatting update for dev Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
#define TAG "SubGhzProtocolBinRaw"
|
||||
|
||||
//change very carefully, RAM ends at the most inopportune moment
|
||||
#define BIN_RAW_BUF_RAW_SIZE 2048
|
||||
#define BIN_RAW_BUF_RAW_SIZE 2048
|
||||
#define BIN_RAW_BUF_DATA_SIZE 512
|
||||
|
||||
#define BIN_RAW_THRESHOLD_RSSI -85.0f
|
||||
#define BIN_RAW_DELTA_RSSI 7.0f
|
||||
#define BIN_RAW_SEARCH_CLASSES 20
|
||||
#define BIN_RAW_TE_MIN_COUNT 40
|
||||
#define BIN_RAW_THRESHOLD_RSSI -85.0f
|
||||
#define BIN_RAW_DELTA_RSSI 7.0f
|
||||
#define BIN_RAW_SEARCH_CLASSES 20
|
||||
#define BIN_RAW_TE_MIN_COUNT 40
|
||||
#define BIN_RAW_BUF_MIN_DATA_COUNT 128
|
||||
#define BIN_RAW_MAX_MARKUP_COUNT 20
|
||||
#define BIN_RAW_MAX_MARKUP_COUNT 20
|
||||
|
||||
//#define BIN_RAW_DEBUG
|
||||
|
||||
@@ -131,7 +131,7 @@ static uint16_t subghz_protocol_bin_raw_get_full_byte(uint16_t bit_count) {
|
||||
if(bit_count & 0x7) {
|
||||
return (bit_count >> 3) + 1;
|
||||
} else {
|
||||
return (bit_count >> 3);
|
||||
return bit_count >> 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user