From 383798b525bdc599c0194bd0f4268ea230d1e088 Mon Sep 17 00:00:00 2001 From: Jenny Plunkett Date: Mon, 15 Oct 2018 14:42:45 -0500 Subject: [PATCH] Revert "Remove note about Stream/Serial deprecation" This reverts commit 5ee5b071ab5b45bbcf0ab8b8f9ca0cba9f06fc72. --- drivers/Serial.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/Serial.h b/drivers/Serial.h index 434d6aa177..1b1e6aa34e 100644 --- a/drivers/Serial.h +++ b/drivers/Serial.h @@ -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();