Resets YunClient in stop() so unread buffered data is not read if YunClient is reused.

This commit is contained in:
Rob Kiefer 2015-06-04 12:31:36 -04:00 committed by Cristian Maglie
parent 6f566776f9
commit 2774f5a4c9
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ void YunClient::stop() {
bridge.transfer(cmd, 2);
}
opened = false;
buffered = 0;
readPos = 0;
}
void YunClient::doBuffer() {