diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-09-24 13:58:45 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-09-28 17:22:00 -0500 |
| commit | 79ca430ddf25a71c73d6219fb68160fb405c3777 (patch) | |
| tree | c3c305fb886e01cc37180242da0190b682115eb4 /shared-module | |
| parent | 8b82c239b825b058efcbe4e3749a6e7d023bdd17 (diff) | |
Match: address -> id
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/canio/Match.c | 8 | ||||
| -rw-r--r-- | shared-module/canio/Match.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/shared-module/canio/Match.c b/shared-module/canio/Match.c index 9e33b956f..b4e8616e9 100644 --- a/shared-module/canio/Match.c +++ b/shared-module/canio/Match.c @@ -26,14 +26,14 @@ #include "shared-module/canio/Match.h" -void common_hal_canio_match_construct(canio_match_obj_t *self, int address, int mask, bool extended) { - self->address = address; +void common_hal_canio_match_construct(canio_match_obj_t *self, int id, int mask, bool extended) { + self->id = id; self->mask = mask; self->extended = extended; } -int common_hal_canio_match_get_address(const canio_match_obj_t *self) { - return self->address; +int common_hal_canio_match_get_id(const canio_match_obj_t *self) { + return self->id; } int common_hal_canio_match_get_mask(const canio_match_obj_t *self) { return self->mask; diff --git a/shared-module/canio/Match.h b/shared-module/canio/Match.h index 25f047f37..b52191d7c 100644 --- a/shared-module/canio/Match.h +++ b/shared-module/canio/Match.h @@ -30,7 +30,7 @@ typedef struct { mp_obj_base_t base; - int address; + int id; int mask; bool extended; } canio_match_obj_t; |
