File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
shared-bindings/supervisor Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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+ //|
9090STATIC 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 ;
You can’t perform that action at this time.
0 commit comments