Revert "Remove note about Stream/Serial deprecation"

This reverts commit 5ee5b071ab.
pull/8413/head
Jenny Plunkett 2018-10-15 14:42:45 -05:00
parent b31bc766e6
commit 383798b525
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ public:
*/
Serial(PinName tx, PinName rx, int baud);
/* Stream gives us a FileHandle with non-functional poll()/readable()/writable. Pass through
* the calls from the SerialBase instead for backwards compatibility. This problem is
* part of why Stream and Serial should be deprecated.
*/
bool readable()
{
return SerialBase::readable();