diff options
| author | Maureen Helm | 2020-05-14 08:07:49 -0500 |
|---|---|---|
| committer | Damien George | 2020-06-12 10:24:46 +1000 |
| commit | db02cb061d8ecd4c7dec90f37e314197a6030ee8 (patch) | |
| tree | cd1d5876dc2df96781f01e40bfb0adaed83a89d5 /ports/zephyr | |
| parent | 8b061f2d799d120f06d68023eb17e5b5e24d50cc (diff) | |
zephyr: Update for refactored zephyr device structures.
Updates the zephyr port to use refactored device structures introduced in
zephyr 2.3.
Diffstat (limited to 'ports/zephyr')
| -rw-r--r-- | ports/zephyr/machine_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/zephyr/machine_i2c.c b/ports/zephyr/machine_i2c.c index f00c1d342..4b29f41d1 100644 --- a/ports/zephyr/machine_i2c.c +++ b/ports/zephyr/machine_i2c.c @@ -48,7 +48,7 @@ typedef struct _machine_hard_i2c_obj_t { STATIC void machine_hard_i2c_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) { machine_hard_i2c_obj_t *self = self_in; - mp_printf(print, "%s", self->dev->config->name); + mp_printf(print, "%s", self->dev->name); } mp_obj_t machine_hard_i2c_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) { |
