[求助]
这个警告错误如何纠正,参数1不同的类型,在send函数有标记
#include
#include
unsigned char ri;
void display(unsigned char[]);
void send(char);
void main(void)
{
union status_buffer{
unsigned char t0_status[4];//一个字节放一位十进制数 末节放小数点
unsigned long t0_sta_val;
}buffer;
buffer.t0_sta_val= 0x01020302;
display(buffer.t0_status);
while(1);
}
void display(unsigned char dbuff[])
{
unsigned char code TAB[]={0xA0,0xF9,0xC4,
........};
unsigned char *pr,a,b,c;
pr=dbuff;
c=*(pr+3);
for(b=0;b<3;b++)
{a=*(pr+b);
ri=TAB[a];
c=c--;
if(c==0)ri=ri-0x80;
send(ri);
}
}
void send(ri)
{ unsigned char a=0x08; 定位指向这行? ?????????????????????????
ACC=ri;
for(;a>0;a--)
{RXD=0;
ACC=_crol_(ACC,1);
TXD=CY;
RXD=1;
}
}
TEXT1.C(41): 警告C235: parameter 1 : different types
暂无评论,赶紧抢沙发吧