mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Resets YunClient in stop() so unread buffered data is not read if YunClient is reused.
This commit is contained in:
parent
6f566776f9
commit
2774f5a4c9
@ -41,6 +41,8 @@ void YunClient::stop() {
|
|||||||
bridge.transfer(cmd, 2);
|
bridge.transfer(cmd, 2);
|
||||||
}
|
}
|
||||||
opened = false;
|
opened = false;
|
||||||
|
buffered = 0;
|
||||||
|
readPos = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void YunClient::doBuffer() {
|
void YunClient::doBuffer() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user