We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab7e32 commit b2f0b49Copy full SHA for b2f0b49
examples/examples-communication/serial/mp3-xon-xoff/receive-mp3/receive-mp3.ino
@@ -54,8 +54,10 @@ void setup() {
54
// data synchronization to prevent buffer overflow
55
if (buffer.levelPercent() >= max_percent) {
56
Serial1.write(xoff); // stop receiving
57
+ Serial1.flush();
58
} else if (buffer.levelPercent() <= min_percent) {
59
Serial1.write(xon); // start receiving
60
61
}
62
});
63
0 commit comments