File tree 4 files changed +15
-11
lines changed
app/src/processing/app/debug
hardware/arduino/cores/arduino
4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,13 @@ public void message(String s) {
367
367
e = new RunnerException ("Please import the SPI library from the Sketch > Import Library menu." );
368
368
s += "\n As of Arduino 0019, the Ethernet library depends on the SPI library." +
369
369
"\n You appear to be using it or another library that depends on the SPI library." ;
370
- }
370
+ }
371
+
372
+ if (pieces [3 ].trim ().equals ("'BYTE' was not declared in this scope" )) {
373
+ e = new RunnerException ("The 'BYTE' keyword is no longer supported." );
374
+ s += "\n As of Arduino 1.0, the 'BYTE' keyword is no longer supported." +
375
+ "\n Please use Serial.write() instead." ;
376
+ }
371
377
372
378
if (exception == null && e != null ) {
373
379
exception = e ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ DEC LITERAL1 Serial_Print
8
8
BIN LITERAL1 Serial_Print
9
9
HEX LITERAL1 Serial_Print
10
10
OCT LITERAL1 Serial_Print
11
- BYTE LITERAL1 Serial_Print
12
11
PI LITERAL1
13
12
HALF_PI LITERAL1
14
13
TWO_PI LITERAL1
Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ void Print::print(const char str[])
55
55
write (str);
56
56
}
57
57
58
- void Print::print (char c, int base )
58
+ void Print::print (char c)
59
59
{
60
- print (( long ) c, base );
60
+ write (c );
61
61
}
62
62
63
63
void Print::print (unsigned char b, int base)
@@ -119,9 +119,9 @@ void Print::println(const char c[])
119
119
println ();
120
120
}
121
121
122
- void Print::println (char c, int base )
122
+ void Print::println (char c)
123
123
{
124
- print (c, base );
124
+ print (c);
125
125
println ();
126
126
}
127
127
Original file line number Diff line number Diff line change 29
29
#define HEX 16
30
30
#define OCT 8
31
31
#define BIN 2
32
- #define BYTE 0
33
32
34
33
class Print
35
34
{
@@ -43,8 +42,8 @@ class Print
43
42
44
43
void print (const String &);
45
44
void print (const char []);
46
- void print (char , int = BYTE );
47
- void print (unsigned char , int = BYTE );
45
+ void print (char );
46
+ void print (unsigned char , int = DEC );
48
47
void print (int , int = DEC);
49
48
void print (unsigned int , int = DEC);
50
49
void print (long , int = DEC);
@@ -53,8 +52,8 @@ class Print
53
52
54
53
void println (const String &s);
55
54
void println (const char []);
56
- void println (char , int = BYTE );
57
- void println (unsigned char , int = BYTE );
55
+ void println (char );
56
+ void println (unsigned char , int = DEC );
58
57
void println (int , int = DEC);
59
58
void println (unsigned int , int = DEC);
60
59
void println (long , int = DEC);
You can’t perform that action at this time.
0 commit comments