Skip to content

Commit 10245c0

Browse files
committed
canio: a few more stray _canios
1 parent a8147c1 commit 10245c0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

shared-bindings/canio/Listener.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
//| class Listener:
3535
//| """Listens for CAN message
3636
//|
37-
//| _canio.Listener is not constructed directly, but instead by calling the
38-
//| Listen method of a _canio.CAN object."""
37+
//| canio.Listener is not constructed directly, but instead by calling the
38+
//| Listen method of a canio.CAN object."""
3939
//|
4040

4141
//| def read(self) -> Optional[Message]:

shared-bindings/canio/__init__.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
//| """CAN bus access
2828
//|
29-
//| The `_canio` module contains low level classes to support the CAN bus
29+
//| The `canio` module contains low level classes to support the CAN bus
3030
//| protocol.
3131
//|
3232
//| CAN and Listener classes change hardware state and should be deinitialized when they
@@ -36,11 +36,11 @@
3636
//|
3737
//| For example::
3838
//|
39-
//| import _canio
39+
//| import canio
4040
//| from board import *
4141
//|
42-
//| can = _canio.CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
43-
//| message = _canio.Message(id=0x0408, data="adafruit"
42+
//| can = canio.CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
43+
//| message = canio.Message(id=0x0408, data="adafruit"
4444
//| can.write(message))
4545
//| can.deinit()
4646
//|
@@ -103,9 +103,9 @@ MAKE_ENUM_MAP(canio_bus_state) {
103103
};
104104
STATIC MP_DEFINE_CONST_DICT(canio_bus_state_locals_dict, canio_bus_state_locals_table);
105105

106-
MAKE_PRINTER(_canio, canio_bus_state);
106+
MAKE_PRINTER(canio, canio_bus_state);
107107

108-
MAKE_ENUM_TYPE(_canio, BusState, canio_bus_state);
108+
MAKE_ENUM_TYPE(canio, BusState, canio_bus_state);
109109

110110
STATIC const mp_rom_map_elem_t canio_module_globals_table[] = {
111111
{ MP_ROM_QSTR(MP_QSTR_BusState), MP_ROM_PTR(&canio_bus_state_type) },

0 commit comments

Comments
 (0)