mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
Removing BYTE keyword (use Serial.write() instead).
This commit is contained in:
parent
3eae87adc9
commit
97abbd7a31
@ -367,7 +367,13 @@ public class Compiler implements MessageConsumer {
|
|||||||
e = new RunnerException("Please import the SPI library from the Sketch > Import Library menu.");
|
e = new RunnerException("Please import the SPI library from the Sketch > Import Library menu.");
|
||||||
s += "\nAs of Arduino 0019, the Ethernet library depends on the SPI library." +
|
s += "\nAs of Arduino 0019, the Ethernet library depends on the SPI library." +
|
||||||
"\nYou appear to be using it or another library that depends on the SPI library.";
|
"\nYou appear to be using it or another library that depends on the SPI library.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pieces[3].trim().equals("'BYTE' was not declared in this scope")) {
|
||||||
|
e = new RunnerException("The 'BYTE' keyword is no longer supported.");
|
||||||
|
s += "\nAs of Arduino 1.0, the 'BYTE' keyword is no longer supported." +
|
||||||
|
"\nPlease use Serial.write() instead.";
|
||||||
|
}
|
||||||
|
|
||||||
if (exception == null && e != null) {
|
if (exception == null && e != null) {
|
||||||
exception = e;
|
exception = e;
|
||||||
|
@ -8,7 +8,6 @@ DEC LITERAL1 Serial_Print
|
|||||||
BIN LITERAL1 Serial_Print
|
BIN LITERAL1 Serial_Print
|
||||||
HEX LITERAL1 Serial_Print
|
HEX LITERAL1 Serial_Print
|
||||||
OCT LITERAL1 Serial_Print
|
OCT LITERAL1 Serial_Print
|
||||||
BYTE LITERAL1 Serial_Print
|
|
||||||
PI LITERAL1
|
PI LITERAL1
|
||||||
HALF_PI LITERAL1
|
HALF_PI LITERAL1
|
||||||
TWO_PI LITERAL1
|
TWO_PI LITERAL1
|
||||||
|
@ -55,9 +55,9 @@ void Print::print(const char str[])
|
|||||||
write(str);
|
write(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Print::print(char c, int base)
|
void Print::print(char c)
|
||||||
{
|
{
|
||||||
print((long) c, base);
|
write(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Print::print(unsigned char b, int base)
|
void Print::print(unsigned char b, int base)
|
||||||
@ -119,9 +119,9 @@ void Print::println(const char c[])
|
|||||||
println();
|
println();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Print::println(char c, int base)
|
void Print::println(char c)
|
||||||
{
|
{
|
||||||
print(c, base);
|
print(c);
|
||||||
println();
|
println();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#define HEX 16
|
#define HEX 16
|
||||||
#define OCT 8
|
#define OCT 8
|
||||||
#define BIN 2
|
#define BIN 2
|
||||||
#define BYTE 0
|
|
||||||
|
|
||||||
class Print
|
class Print
|
||||||
{
|
{
|
||||||
@ -43,8 +42,8 @@ class Print
|
|||||||
|
|
||||||
void print(const String &);
|
void print(const String &);
|
||||||
void print(const char[]);
|
void print(const char[]);
|
||||||
void print(char, int = BYTE);
|
void print(char);
|
||||||
void print(unsigned char, int = BYTE);
|
void print(unsigned char, int = DEC);
|
||||||
void print(int, int = DEC);
|
void print(int, int = DEC);
|
||||||
void print(unsigned int, int = DEC);
|
void print(unsigned int, int = DEC);
|
||||||
void print(long, int = DEC);
|
void print(long, int = DEC);
|
||||||
@ -53,8 +52,8 @@ class Print
|
|||||||
|
|
||||||
void println(const String &s);
|
void println(const String &s);
|
||||||
void println(const char[]);
|
void println(const char[]);
|
||||||
void println(char, int = BYTE);
|
void println(char);
|
||||||
void println(unsigned char, int = BYTE);
|
void println(unsigned char, int = DEC);
|
||||||
void println(int, int = DEC);
|
void println(int, int = DEC);
|
||||||
void println(unsigned int, int = DEC);
|
void println(unsigned int, int = DEC);
|
||||||
void println(long, int = DEC);
|
void println(long, int = DEC);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user