Skip to content

Commit 0688709

Browse files
authored
Move the docs next to the implementation
1 parent 05d4b8c commit 0688709

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

shared-bindings/supervisor/Runtime.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@
5353
//|
5454
//| Returns the USB serial communication status (read-only).
5555
//|
56-
//| .. attribute:: runtime.serial_bytes_available
57-
//|
58-
//| Returns the whether any bytes are available to read
59-
//| on the USB serial input. Allows for polling to see whether
60-
//| to call the built-in input() or wait. (read-only)
61-
//|
6256
//| .. note::
6357
//|
6458
//| SAMD: Will return ``True`` if the USB serial connection
@@ -86,7 +80,13 @@ const mp_obj_property_t supervisor_serial_connected_obj = {
8680
(mp_obj_t)&mp_const_none_obj},
8781
};
8882

89-
/*Added to allow for polling of USB Console*/
83+
84+
//| .. attribute:: runtime.serial_bytes_available
85+
//|
86+
//| Returns the whether any bytes are available to read
87+
//| on the USB serial input. Allows for polling to see whether
88+
//| to call the built-in input() or wait. (read-only)
89+
//|
9090
STATIC mp_obj_t supervisor_get_serial_bytes_available(mp_obj_t self){
9191
if (!common_hal_get_serial_bytes_available()) {
9292
return mp_const_false;

0 commit comments

Comments
 (0)