1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 13:09:49 +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

@@ -17,4 +17,4 @@ typedef struct {
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -9,10 +9,10 @@ extern "C" {
#endif
// Default btn ID
#define SUBGHZ_CUSTOM_BTN_OK (0U)
#define SUBGHZ_CUSTOM_BTN_UP (1U)
#define SUBGHZ_CUSTOM_BTN_DOWN (2U)
#define SUBGHZ_CUSTOM_BTN_LEFT (3U)
#define SUBGHZ_CUSTOM_BTN_OK (0U)
#define SUBGHZ_CUSTOM_BTN_UP (1U)
#define SUBGHZ_CUSTOM_BTN_DOWN (2U)
#define SUBGHZ_CUSTOM_BTN_LEFT (3U)
#define SUBGHZ_CUSTOM_BTN_RIGHT (4U)
bool subghz_custom_btn_set(uint8_t btn_id);
@@ -27,4 +27,4 @@ bool subghz_custom_btn_is_allowed(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -2,10 +2,10 @@
#include "custom_btn.h"
#define PROG_MODE_OFF (0U)
#define PROG_MODE_KEELOQ_BFT (1U)
#define PROG_MODE_OFF (0U)
#define PROG_MODE_KEELOQ_BFT (1U)
#define PROG_MODE_KEELOQ_APRIMATIC (2U)
#define PROG_MODE_KEELOQ_DEA_MIO (3U)
#define PROG_MODE_KEELOQ_DEA_MIO (3U)
typedef uint8_t ProgMode;

View File

@@ -44,4 +44,4 @@ uint8_t subghz_protocol_blocks_get_hash_data(SubGhzBlockDecoder* decoder, size_t
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -64,4 +64,4 @@ size_t subghz_protocol_blocks_get_upload_from_bit_array(
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -160,4 +160,4 @@ SubGhzProtocolStatus subghz_block_generic_deserialize_check_count_bit(
}
} while(false);
return ret;
}
}

View File

@@ -69,4 +69,4 @@ SubGhzProtocolStatus subghz_block_generic_deserialize_check_count_bit(
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -241,4 +241,4 @@ uint8_t subghz_protocol_blocks_xor_bytes(uint8_t const message[], size_t size) {
result ^= message[i];
}
return result;
}
}

View File

@@ -16,7 +16,7 @@
(value) &= ~(_one << (bit)); \
})
#define bit_write(value, bit, bitvalue) (bitvalue ? bit_set(value, bit) : bit_clear(value, bit))
#define DURATION_DIFF(x, y) (((x) < (y)) ? ((y) - (x)) : ((x) - (y)))
#define DURATION_DIFF(x, y) (((x) < (y)) ? ((y) - (x)) : ((x) - (y)))
#ifdef __cplusplus
extern "C" {