formated code style
This commit is contained in:
@@ -38,7 +38,7 @@ extern INT8 parse_repeat_times(struct tag_head *tag);
|
|||||||
extern INT8 parse_bit_num(struct tag_head *tag);
|
extern INT8 parse_bit_num(struct tag_head *tag);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _IRDA_PARSE_FRAME_PARAMETER_H_
|
#endif // _IRDA_PARSE_FRAME_PARAMETER_H_
|
||||||
@@ -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)
|
for (i = 0; i < protocol->mode2.comp_data[mode_status].seg_len; i += 3)
|
||||||
{
|
{
|
||||||
apply_ac_parameter_type_2(ir_hex_code,
|
apply_ac_parameter_type_2(ir_hex_code,
|
||||||
&(protocol->mode2.comp_data[mode_status]),
|
&(protocol->mode2.comp_data[mode_status]),
|
||||||
(UINT8)i, FALSE);
|
(UINT8)i, FALSE);
|
||||||
}
|
}
|
||||||
return IR_DECODE_SUCCEEDED;
|
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)
|
for (i = 0; i < protocol->speed2.comp_data[wind_speed].seg_len; i += 3)
|
||||||
{
|
{
|
||||||
apply_ac_parameter_type_2(ir_hex_code,
|
apply_ac_parameter_type_2(ir_hex_code,
|
||||||
&(protocol->speed2.comp_data[wind_speed]),
|
&(protocol->speed2.comp_data[wind_speed]),
|
||||||
(UINT8)i, FALSE);
|
(UINT8)i, FALSE);
|
||||||
}
|
}
|
||||||
return IR_DECODE_SUCCEEDED;
|
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)
|
for (i = 0; i < protocol->swing2.comp_data[swing_mode].seg_len; i += 3)
|
||||||
{
|
{
|
||||||
apply_ac_parameter_type_2(ir_hex_code,
|
apply_ac_parameter_type_2(ir_hex_code,
|
||||||
&(protocol->swing2.comp_data[swing_mode]),
|
&(protocol->swing2.comp_data[swing_mode]),
|
||||||
(UINT8)i, FALSE);
|
(UINT8)i, FALSE);
|
||||||
}
|
}
|
||||||
return IR_DECODE_SUCCEEDED;
|
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)
|
for (i = 0; i < protocol->function2.comp_data[function - 1].seg_len; i += 3)
|
||||||
{
|
{
|
||||||
apply_ac_parameter_type_2(ir_hex_code,
|
apply_ac_parameter_type_2(ir_hex_code,
|
||||||
&(protocol->function2.comp_data[function - 1]),
|
&(protocol->function2.comp_data[function - 1]),
|
||||||
(UINT8)i, FALSE);
|
(UINT8)i, FALSE);
|
||||||
}
|
}
|
||||||
return IR_DECODE_SUCCEEDED;
|
return IR_DECODE_SUCCEEDED;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ INT8 ir_ac_file_open(const char *file_name)
|
|||||||
FILE *stream = fopen(file_name, "rb");
|
FILE *stream = fopen(file_name, "rb");
|
||||||
#else
|
#else
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
fopen_s(&stream, file_name, "rb");
|
fopen_s(&stream, file_name, "rb");
|
||||||
#endif
|
#endif
|
||||||
if (NULL == stream)
|
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();
|
time_length = create_ir_frame();
|
||||||
|
|
||||||
#if defined BOARD_PC
|
#if defined BOARD_PC
|
||||||
for (i = 0; i < context->code_cnt; i++)
|
for (i = 0; i < context->code_cnt; i++)
|
||||||
{
|
{
|
||||||
ir_printf("%d,", context->time[i]);
|
ir_printf("%d,", context->time[i]);
|
||||||
}
|
}
|
||||||
ir_printf("\n");
|
ir_printf("\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return time_length;
|
return time_length;
|
||||||
@@ -393,7 +393,7 @@ INT8 ir_tv_file_open(const char *file_name)
|
|||||||
FILE *stream = fopen(file_name, "rb");
|
FILE *stream = fopen(file_name, "rb");
|
||||||
#else
|
#else
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
fopen_s(&stream, file_name, "rb");
|
fopen_s(&stream, file_name, "rb");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (stream == NULL)
|
if (stream == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user