formated code style

This commit is contained in:
2017-03-01 20:34:54 +08:00
parent 7612e0dd11
commit 0c4a35eb17
3 changed files with 16 additions and 16 deletions

View File

@@ -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_

View File

@@ -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;
}

View File

@@ -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)