Listener: fix doc markup, include in globals of its module
This commit is contained in:
parent
65ca1c7bbc
commit
37af9dde90
|
@ -32,10 +32,10 @@
|
|||
#include "py/objproperty.h"
|
||||
|
||||
//| class Listener:
|
||||
//| """Listens for CAN message
|
||||
//| """Listens for CAN message
|
||||
//|
|
||||
//| _canio.Listener is not constructed directly, but instead by calling the
|
||||
//| Listen method of a _canio.CAN object."""
|
||||
//| _canio.Listener is not constructed directly, but instead by calling the
|
||||
//| Listen method of a _canio.CAN object."""
|
||||
//|
|
||||
|
||||
//| def read(self) -> Optional[Message]:
|
||||
|
|
|
@ -57,11 +57,9 @@
|
|||
STATIC const mp_rom_map_elem_t canio_module_globals_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR__canio) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_CAN), MP_ROM_PTR(&canio_can_type) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_Listener), MP_ROM_PTR(&canio_listener_type) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_Match), MP_ROM_PTR(&canio_match_type) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_Message), MP_ROM_PTR(&canio_message_type) },
|
||||
#if 0
|
||||
{ MP_ROM_QSTR(MP_QSTR_Listener), MP_ROM_PTR(&canio_listener_type) },
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue