2626
2727#include <stdbool.h>
2828#include "py/objproperty.h"
29- #include "shared-bindings/supervisor/Status .h"
29+ #include "shared-bindings/supervisor/Runtime .h"
3030
3131//TODO: add USB, REPL to description once they're operational
32- //| .. currentmodule:: status
32+ //| .. currentmodule:: runtime
3333//|
34- //| :class:`Status ` --- Supervisor Status information
35- //| -------------------------------------------------
34+ //| :class:`Runtime ` --- Supervisor Runtime information
35+ //| ----------------------------------------------------
3636//|
37- //| Get current status of the serial connection .
37+ //| Get current status of runtime objects .
3838//|
3939//| Usage::
4040//|
4141//| import supervisor
42- //| if supervisor.serial_connected:
42+ //| if supervisor.runtime. serial_connected:
4343//| print("Hello World!")
4444//|
4545
46- //| .. attribute:: serial_connected
46+ //| .. attribute:: runtime. serial_connected
4747//|
4848//| Returns the serial communication status (read-only)
4949//|
@@ -64,14 +64,14 @@ const mp_obj_property_t supervisor_serial_connected_obj = {
6464 (mp_obj_t )& mp_const_none_obj },
6565};
6666
67- STATIC const mp_rom_map_elem_t supervisor_status_locals_dict_table [] = {
67+ STATIC const mp_rom_map_elem_t supervisor_runtime_locals_dict_table [] = {
6868 { MP_ROM_QSTR (MP_QSTR_serial_connected ), MP_ROM_PTR (& supervisor_serial_connected_obj ) },
6969};
7070
71- STATIC MP_DEFINE_CONST_DICT (supervisor_status_locals_dict , supervisor_status_locals_dict_table );
71+ STATIC MP_DEFINE_CONST_DICT (supervisor_runtime_locals_dict , supervisor_runtime_locals_dict_table );
7272
73- const mp_obj_type_t supervisor_status_type = {
73+ const mp_obj_type_t supervisor_runtime_type = {
7474 .base = { & mp_type_type },
75- .name = MP_QSTR_Status ,
76- .locals_dict = (mp_obj_t )& supervisor_status_locals_dict ,
75+ .name = MP_QSTR_Runtime ,
76+ .locals_dict = (mp_obj_t )& supervisor_runtime_locals_dict ,
7777};
0 commit comments