mirror of
https://github.com/oxan/esphome-stream-server.git
synced 2026-02-14 18:29:54 +00:00
Fix syntax
This commit is contained in:
@@ -37,7 +37,8 @@ void StreamServerComponent::cleanup() {
|
||||
}
|
||||
|
||||
void StreamServerComponent::read() {
|
||||
while ((int len = this->stream_->available()) > 0) {
|
||||
int len;
|
||||
while ((len = this->stream_->available()) > 0) {
|
||||
char buf[128];
|
||||
size_t read = this->stream_->readBytes(buf, min(len, 128));
|
||||
for (auto const& client : this->clients_)
|
||||
|
||||
Reference in New Issue
Block a user