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 53
53
//|
54
54
//| Returns the USB serial communication status (read-only).
55
55
//|
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
- //|
62
56
//| .. note::
63
57
//|
64
58
//| SAMD: Will return ``True`` if the USB serial connection
@@ -86,7 +80,13 @@ const mp_obj_property_t supervisor_serial_connected_obj = {
86
80
(mp_obj_t )& mp_const_none_obj },
87
81
};
88
82
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
+ //|
90
90
STATIC mp_obj_t supervisor_get_serial_bytes_available (mp_obj_t self ){
91
91
if (!common_hal_get_serial_bytes_available ()) {
92
92
return mp_const_false ;
You can’t perform that action at this time.
0 commit comments