summaryrefslogtreecommitdiff
path: root/shared-bindings/supervisor
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-10-09 23:15:25 -0700
committerGitHub <noreply@github.com>2018-10-09 23:15:25 -0700
commit0688709c4fb965b318ad40d2cab19911bd1497e8 (patch)
treeb3164de4915e881f2c6075559c9bb8e1de34dbf2 /shared-bindings/supervisor
parent05d4b8cf50685db683dd48d7d3037da868385a0a (diff)
Move the docs next to the implementation
Diffstat (limited to 'shared-bindings/supervisor')
-rwxr-xr-xshared-bindings/supervisor/Runtime.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/shared-bindings/supervisor/Runtime.c b/shared-bindings/supervisor/Runtime.c
index 27b62abd4..5ba2198e1 100755
--- a/shared-bindings/supervisor/Runtime.c
+++ b/shared-bindings/supervisor/Runtime.c
@@ -53,12 +53,6 @@
//|
//| Returns the USB serial communication status (read-only).
//|
-//| .. attribute:: runtime.serial_bytes_available
-//|
-//| Returns the whether any bytes are available to read
-//| on the USB serial input. Allows for polling to see whether
-//| to call the built-in input() or wait. (read-only)
-//|
//| .. note::
//|
//| SAMD: Will return ``True`` if the USB serial connection
@@ -86,7 +80,13 @@ const mp_obj_property_t supervisor_serial_connected_obj = {
(mp_obj_t)&mp_const_none_obj},
};
-/*Added to allow for polling of USB Console*/
+
+//| .. attribute:: runtime.serial_bytes_available
+//|
+//| Returns the whether any bytes are available to read
+//| on the USB serial input. Allows for polling to see whether
+//| to call the built-in input() or wait. (read-only)
+//|
STATIC mp_obj_t supervisor_get_serial_bytes_available(mp_obj_t self){
if (!common_hal_get_serial_bytes_available()) {
return mp_const_false;