summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-09-18 11:14:59 -0500
committerJeff Epler <jepler@gmail.com>2020-09-21 16:44:26 -0500
commitc39ec1581e3fbc59de7f882adf2e6fbb574fb42e (patch)
tree1830f61f171893329fd5da8f0d6c89c3522e4522 /shared-bindings
parenta76119afcba6d7ceb4eb1e4baa79745528feeb92 (diff)
_canio: Message: setting data clears rtr, and vice versa
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/_canio/Message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/_canio/Message.c b/shared-bindings/_canio/Message.c
index 85657e05e..c7ef5d458 100644
--- a/shared-bindings/_canio/Message.c
+++ b/shared-bindings/_canio/Message.c
@@ -117,7 +117,7 @@ STATIC const mp_obj_property_t canio_message_id_obj = {
//| data: bytes
//| """The content of the message, or dummy content in the case of an rtr.
//|
-//| Assigning to data also sets the length."""
+//| Assigning to data also sets the length and clears the rtr flag."""
//|
STATIC mp_obj_t canio_message_data_get(const mp_obj_t self_in) {
canio_message_obj_t *self = self_in;
@@ -202,7 +202,7 @@ STATIC const mp_obj_property_t canio_message_extended_obj = {
//| rtr: bool
-//| """True if the message represents a remote transmission request (RTR)"""
+//| """True if the message represents a remote transmission request (RTR). Setting rtr to true zeros out data"""
//|
STATIC mp_obj_t canio_message_rtr_get(const mp_obj_t self_in) {
canio_message_obj_t *self = self_in;