按理说,调用自身不是一种标准的递规,但是程序没有问题。
就是不知道怎么把警告消掉。
void test_U6t_setting(unsigned char U6t_task)
{
unsigned char i;
switch(U6t_task)
{
case 0x00:
{
//1=48.73 0001; 2=86.05 0010; 3=32.52 0011; 4=82.00 0100;
//5=68.75 0101; 6=61.68 0110; 7=52.72 0111; 8=45.45 1000;
//9=34.94 1001; 10=34.35 1010;11=free;
for(U6t_task=0x01;U6t_task <=0x04;U6t_task++)
{
i=U6t_task;
//test_U6t_setting(U6t_task);
test_U6t_setting(i);
U6t_task=i;
}
}
break;
case 0x01:
{
//调整电阻箱使RT1=RT2=86.05Ω,记录此时U6T的值;
RT1RT2_out(2,2);
test_U6t_data(U6t_task);
}
break;
case 0x02:
{
//调整电阻箱使RT1=RT2=32.52Ω,记录此时U6T的值;
RT1RT2_out(3,3);
test_U6t_data(U6t_task);
}
break;
case 0x03:
{
//调整电阻箱使RT1 =86.05Ω,RT2=32.52Ω,记录此时U6T的值
RT1RT2_out(3,2);
test_U6t_data(U6t_task);
}
break;
case 0x04:
{
//调整电阻箱使RT1 =32.52Ω,RT2=86.05Ω,记录此时U6T的值
RT1RT2_out(2,3);
test_U6t_data(U6t_task);
}
break;
default:
//错误的代码,不处理,返回
break;
}
//end switch
}
此主题相关图片如下: