1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

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

View File

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