Skip to content

Commit 5d48ea4

Browse files
committed
Commit to test format checkeres
1 parent 875acac commit 5d48ea4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

example/usage_example.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ void frame_handler(const cff_frame_t *frame)
1414
printf("\n");
1515
}
1616

17-
int main()
18-
{
17+
int main() {
1918
// Initialize frame builder with a buffer
2019
uint8_t build_buffer[256];
2120
cff_frame_builder_t builder;

src/cff.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ static void cff_init_crc_table(void)
4848
return;
4949
}
5050

51-
for (int i = 0; i < 256; i++) {
51+
for (int i = 0; i < 256; i++)
52+
{
5253
uint16_t crc = (uint16_t) (i << 8);
5354
for (int j = 0; j < 8; j++) {
5455
if (crc & 0x8000) {

src/cff.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ typedef struct cff_header_t {
119119
//!
120120
//! Represents a complete CFF frame with header, payload, and payload CRC.
121121
//! The payload field points to the actual payload data.
122-
typedef struct cff_frame_t {
122+
typedef struct cff_frame_t
123+
{
123124
cff_header_t header; //!< Frame header
124125
const uint8_t *payload; //!< Pointer to payload data
125126
uint16_t payload_crc; //!< CRC16 checksum of payload

test/test_cff_crc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ void test_crc16_known_test_vector(void)
2525
TEST_ASSERT_EQUAL_HEX16(expected_crc, actual_crc);
2626
}
2727

28-
void test_crc16_empty_data(void)
29-
{
28+
void test_crc16_empty_data(void) {
3029
uint16_t crc;
3130
cff_error_en_t result = cff_crc16((const uint8_t *) "", 0, &crc);
3231

0 commit comments

Comments
 (0)