mirror of https://github.com/noisymime/Arduino.git
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);
|
||||
}
|
||||
opened = false;
|
||||
buffered = 0;
|
||||
readPos = 0;
|
||||
}
|
||||
|
||||
void YunClient::doBuffer() {
|
||||
|
|
Loading…
Reference in New Issue