Skip to content

Commit 8b82c23

Browse files
committed
canio: doc improvements
1 parent 6bfcb01 commit 8b82c23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shared-bindings/canio/Message.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ STATIC const mp_obj_property_t canio_message_id_obj = {
117117
//| data: bytes
118118
//| """The content of the message, or dummy content in the case of an rtr.
119119
//|
120-
//| Assigning to data also sets the length and clears the rtr flag."""
120+
//| Assigning to data also clears the rtr flag, if it was set."""
121121
//|
122122
STATIC mp_obj_t canio_message_data_get(const mp_obj_t self_in) {
123123
canio_message_obj_t *self = self_in;

shared-bindings/canio/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
//| from board import *
4141
//|
4242
//| can = canio.CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
43-
//| message = canio.Message(id=0x0408, data="adafruit"
44-
//| can.write(message))
43+
//| message = canio.Message(id=0x0408, data=b"adafruit")
44+
//| can.send(message)
4545
//| can.deinit()
4646
//|
4747
//| This example will write the data 'adafruit' onto the CAN bus to any

0 commit comments

Comments
 (0)