Skip to content

Commit 6627b45

Browse files
author
SimonePDA
authored
Update available.adoc
Fixes the issue with BYTE keyword that is no longer supported, fixing arduino#320
1 parent 7e31568 commit 6627b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Language/Functions/Communication/Serial/available.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ void loop() {
8282
// read from port 0, send to port 1:
8383
if (Serial.available()) {
8484
int inByte = Serial.read();
85-
Serial1.print(inByte, BYTE);
85+
Serial1.print(inByte, DEC);
8686
8787
}
8888
// read from port 1, send to port 0:
8989
if (Serial1.available()) {
9090
int inByte = Serial1.read();
91-
Serial.print(inByte, BYTE);
91+
Serial.print(inByte, DEC);
9292
}
9393
}
9494
----

0 commit comments

Comments
 (0)