Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error in PR #2048: if ::available() is called before ::connect() …
…_rxBuffer is not initialised (#2155)
- Loading branch information
bff9f0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it legal to call available() before connect()? And if it is, why does the same logic not apply to read(), write(), ... ? all those functions potentially access rxBuffer before it exists.