mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Added some friendly messages for Arduino Robot include errors on old sketches
After merging #1859, old sketches that uses Robot_Control library must include Wire.h and SPI.h to work properly.
This commit is contained in:
parent
9dd425515b
commit
2a8c06381f
@ -536,6 +536,18 @@ public class Compiler implements MessageConsumer {
|
||||
}
|
||||
}
|
||||
|
||||
if (s.contains("undefined reference to `SPIClass::begin()'")
|
||||
&& s.contains("libraries/Robot_Control")) {
|
||||
String error = _("Please import the SPI library from the Sketch > Import Library menu.");
|
||||
exception = new RunnerException(error);
|
||||
}
|
||||
|
||||
if (s.contains("undefined reference to `Wire'")
|
||||
&& s.contains("libraries/Robot_Control")) {
|
||||
String error = _("Please import the Wire library from the Sketch > Import Library menu.");
|
||||
exception = new RunnerException(error);
|
||||
}
|
||||
|
||||
System.err.print(s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user