Skip to content

Commit

Permalink
[sio][network] shrink buffer after xfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 17, 2023
1 parent cc88bc7 commit 1e21550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/device/sio/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ void sioNetwork::sio_read()
// And send off to the computer
bus_to_computer((uint8_t *)receiveBuffer->data(), num_bytes, err);
receiveBuffer->erase(0, num_bytes);
receiveBuffer->shrink_to_fit();
}

/**
Expand Down

0 comments on commit 1e21550

Please sign in to comment.