我这编译不成功,错误如下:
In file included from src/main.cpp:65:0:
src/UartReadLineSensor.h: In member function 'virtual void UartReadLineSensor::loop()':
src/UartReadLineSensor.h:67:70: error: invalid conversion from 'char*' to 'char' [-fpermissive]
u16_dis_2[j] = buffer;
^
src/UartReadLineSensor.h:77:70: error: invalid conversion from 'char*' to 'char' [-fpermissive]
u16_dis_1[j] = buffer;
^
src/UartReadLineSensor.h:86:68: error: invalid conversion from 'char*' to 'char' [-fpermissive]
u16_dis[j] = buffer;
^
src/UartReadLineSensor.h:108:70: error: invalid conversion from 'char*' to 'char' [-fpermissive]
u16_dis_2[j] = buffer;
^
src/UartReadLineSensor.h:117:70: error: invalid conversion from 'char*' to 'char' [-fpermissive]
u16_dis_1[j] = buffer;
^
src/UartReadLineSensor.h:126:68: error: invalid conversion from 'char*' to 'char' [-fpermissive]
u16_dis[j] = buffer;
^
In file included from src/main.cpp:65:0:
src/UartReadLineSensor.h:155:61: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp[j] = buffer;
^
src/UartReadLineSensor.h:165:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp5[j] = buffer;
^
src/UartReadLineSensor.h:178:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp2[j] = buffer;
^
src/UartReadLineSensor.h:187:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp3[j] = buffer;
^
src/UartReadLineSensor.h:196:61: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp[j] = buffer;
^
src/UartReadLineSensor.h:209:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp2[j] = buffer;
^
src/UartReadLineSensor.h:218:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp3[j] = buffer;
^
src/UartReadLineSensor.h:227:61: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp[j] = buffer;
^
src/UartReadLineSensor.h:240:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp2[j] = buffer;
^
src/UartReadLineSensor.h:249:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp3[j] = buffer;
^
src/UartReadLineSensor.h:258:61: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp[j] = buffer;
^
src/UartReadLineSensor.h:276:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp2[j] = buffer;
^
src/UartReadLineSensor.h:285:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp3[j] = buffer;
^
src/UartReadLineSensor.h:298:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp2[j] = buffer;
^
src/UartReadLineSensor.h:307:62: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp3[j] = buffer;
^
src/UartReadLineSensor.h:316:61: error: invalid conversion from 'char*' to 'char' [-fpermissive]
chartemp[j] = buffer;
^
/config/cem5825f.yaml: In lambda function:
/config/cem5825f.yaml:82:91: warning: statement has no effect [-Wunused-value]
*** [.pioenvs/cem5825f/src/main.cpp.o] Error 1
========================= [FAILED] Took 39.94 seconds =========================
|