File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments