Listener: fix doc markup, include in globals of its module

This commit is contained in:
Jeff Epler 2020-09-16 11:57:57 -05:00
parent 65ca1c7bbc
commit 37af9dde90
2 changed files with 4 additions and 6 deletions

View File

@ -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]:

View File

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