File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ STATIC const mp_obj_property_t canio_message_id_obj = {
117
117
//| data: bytes
118
118
//| """The content of the message, or dummy content in the case of an rtr.
119
119
//|
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 ."""
121
121
//|
122
122
STATIC mp_obj_t canio_message_data_get (const mp_obj_t self_in ) {
123
123
canio_message_obj_t * self = self_in ;
Original file line number Diff line number Diff line change 40
40
//| from board import *
41
41
//|
42
42
//| 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)
45
45
//| can.deinit()
46
46
//|
47
47
//| This example will write the data 'adafruit' onto the CAN bus to any
You can’t perform that action at this time.
0 commit comments