Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 804ee12

Browse files
Merge branch 'master' into release/v3.1.x
2 parents a805e06 + 74e4a74 commit 804ee12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎libraries/ESP32/examples/Serial/OnReceiveError_BREAK_Demo/OnReceiveError_BREAK_Demo.ino‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ void onReceiveFunction() {
8080
received_bytes = received_bytes + available;
8181
Serial.printf("onReceive Callback:: There are %d bytes available: {", available);
8282
while (available--) {
83-
Serial.print((char)Serial1.read());
83+
char c = Serial1.read();
84+
Serial.printf("0x%x='%c'", c, c);
85+
if (available) {
86+
Serial.print(" ");
87+
}
8488
}
8589
Serial.println("}");
8690
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /