Move the docs next to the implementation

This commit is contained in:
Scott Shawcroft 2018-10-09 23:15:25 -07:00 committed by GitHub
parent 05d4b8cf50
commit 0688709c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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;