求助编译错误
.....
String myData = "";
.....
....
....
myData = mySerial.read();
.......
......
....
Arduino:1.5.5-r2 (Windows XP), 板:"Arduino Uno"
sketch_jan15c.ino: In function 'void loop()':
sketch_jan15c:18: error: ambiguous overload for 'operator=' in 'myData = mySerial.SoftwareSerial::read()'
C:\Documents and Settings\Administrator\桌面\arduino-1.5.5-r2\hardware\arduino\avr\cores\arduino/WString.h:86: note: candidates are: String& String::operator=(const String&) <near match>
C:\Documents and Settings\Administrator\桌面\arduino-1.5.5-r2\hardware\arduino\avr\cores\arduino/WString.h:87: note: String& String::operator=(const char*) <near match>
C:\Documents and Settings\Administrator\桌面\arduino-1.5.5-r2\hardware\arduino\avr\cores\arduino/WString.h:88: note: String& String::operator=(const __FlashStringHelper*) <near match>
报告将会包含更多的信息
"Show verbose output during compilation"
在 文件>首选项 中启用
这个错误是什么意思?先谢了!
页:
[1]