From 0c4a35eb17892ce363aecb1ecef5fd5d46a837ec Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Wed, 1 Mar 2017 20:34:54 +0800 Subject: [PATCH] formated code style --- src/ir_decoder/include/ir_ac_parse_frame_info.h | 2 +- src/ir_decoder/src/ir_ac_apply.c | 16 ++++++++-------- src/ir_decoder/src/ir_decode.c | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/ir_decoder/include/ir_ac_parse_frame_info.h b/src/ir_decoder/include/ir_ac_parse_frame_info.h index bdd3d83..899f499 100644 --- a/src/ir_decoder/include/ir_ac_parse_frame_info.h +++ b/src/ir_decoder/include/ir_ac_parse_frame_info.h @@ -38,7 +38,7 @@ extern INT8 parse_repeat_times(struct tag_head *tag); extern INT8 parse_bit_num(struct tag_head *tag); #ifdef __cplusplus - } +} #endif #endif // _IRDA_PARSE_FRAME_PARAMETER_H_ \ No newline at end of file diff --git a/src/ir_decoder/src/ir_ac_apply.c b/src/ir_decoder/src/ir_ac_apply.c index 626a3d8..2642823 100644 --- a/src/ir_decoder/src/ir_ac_apply.c +++ b/src/ir_decoder/src/ir_ac_apply.c @@ -187,8 +187,8 @@ static INT8 apply_ac_mode(struct ac_protocol *protocol, UINT8 mode_status) for (i = 0; i < protocol->mode2.comp_data[mode_status].seg_len; i += 3) { apply_ac_parameter_type_2(ir_hex_code, - &(protocol->mode2.comp_data[mode_status]), - (UINT8)i, FALSE); + &(protocol->mode2.comp_data[mode_status]), + (UINT8)i, FALSE); } return IR_DECODE_SUCCEEDED; } @@ -229,8 +229,8 @@ static INT8 apply_ac_wind_speed(struct ac_protocol *protocol, UINT8 wind_speed) for (i = 0; i < protocol->speed2.comp_data[wind_speed].seg_len; i += 3) { apply_ac_parameter_type_2(ir_hex_code, - &(protocol->speed2.comp_data[wind_speed]), - (UINT8)i, FALSE); + &(protocol->speed2.comp_data[wind_speed]), + (UINT8)i, FALSE); } return IR_DECODE_SUCCEEDED; } @@ -340,8 +340,8 @@ static INT8 apply_ac_swing(struct ac_protocol *protocol, UINT8 swing_mode) for (i = 0; i < protocol->swing2.comp_data[swing_mode].seg_len; i += 3) { apply_ac_parameter_type_2(ir_hex_code, - &(protocol->swing2.comp_data[swing_mode]), - (UINT8)i, FALSE); + &(protocol->swing2.comp_data[swing_mode]), + (UINT8)i, FALSE); } return IR_DECODE_SUCCEEDED; } @@ -568,8 +568,8 @@ INT8 apply_function(struct ac_protocol *protocol, UINT8 function) for (i = 0; i < protocol->function2.comp_data[function - 1].seg_len; i += 3) { apply_ac_parameter_type_2(ir_hex_code, - &(protocol->function2.comp_data[function - 1]), - (UINT8)i, FALSE); + &(protocol->function2.comp_data[function - 1]), + (UINT8)i, FALSE); } return IR_DECODE_SUCCEEDED; } diff --git a/src/ir_decoder/src/ir_decode.c b/src/ir_decoder/src/ir_decode.c index 87227d5..f4fd403 100644 --- a/src/ir_decoder/src/ir_decode.c +++ b/src/ir_decoder/src/ir_decode.c @@ -63,7 +63,7 @@ INT8 ir_ac_file_open(const char *file_name) FILE *stream = fopen(file_name, "rb"); #else FILE *stream; - fopen_s(&stream, file_name, "rb"); + fopen_s(&stream, file_name, "rb"); #endif if (NULL == stream) { @@ -216,11 +216,11 @@ UINT16 ir_ac_lib_control(remote_ac_status_t ac_status, UINT16 *user_data, UINT8 time_length = create_ir_frame(); #if defined BOARD_PC - for (i = 0; i < context->code_cnt; i++) - { - ir_printf("%d,", context->time[i]); - } - ir_printf("\n"); + for (i = 0; i < context->code_cnt; i++) + { + ir_printf("%d,", context->time[i]); + } + ir_printf("\n"); #endif return time_length; @@ -393,7 +393,7 @@ INT8 ir_tv_file_open(const char *file_name) FILE *stream = fopen(file_name, "rb"); #else FILE *stream; - fopen_s(&stream, file_name, "rb"); + fopen_s(&stream, file_name, "rb"); #endif if (stream == NULL)