修复Yoda条件(常量右置)与函数定义括号同行
- net_select.c/net_socket.c 共 62 处 Yoda 条件改为常量在右(规范 6.3.1) - 11 个文件 58 处函数定义左大括号由换行改为与右括号同行(规范 4.4.2)
This commit is contained in:
+2
-4
@@ -22,8 +22,7 @@
|
||||
* 限定条件:TPAFE5160 硬件已上电
|
||||
* 函数说明:配置采样参数,准备数据缓冲区
|
||||
*/
|
||||
int adc_task_init(void)
|
||||
{
|
||||
int adc_task_init(void) {
|
||||
DBG_INFO("adc_task_init");
|
||||
return 0;
|
||||
}
|
||||
@@ -35,8 +34,7 @@ int adc_task_init(void)
|
||||
* 限定条件:adc_task_init() 已成功调用
|
||||
* 函数说明:定时触发 TPAFE5160 同步采样并处理数据
|
||||
*/
|
||||
void adc_task_func(void const *arg)
|
||||
{
|
||||
void adc_task_func(void const *arg) {
|
||||
(void)arg;
|
||||
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user