程序是
截取一段:
if(wireless==false)
{
WriteBuffer[0]=102;
WriteBuffer[1]=90;
WriteBuffer[2]=160+1;
FT_Status=write(fd,WriteBuffer,3);
if(FT_Status==3)
{
FT_Status=read(fd,ReadBuffer,ReadCount1);
if(FT_Status==ReadCount1)
{
rx_data[0]=ReadBuffer[0];
报错是:no match for call to '(Read)(int&,char[1],int&)',错在FT_Status=read(fd,ReadBuffer,ReadCount1);这一行。什么原因呢?
------解决方案--------------------