Skip to content

Commit

Permalink
zephyr: Update for refactored zephyr device structures.
Browse files Browse the repository at this point in the history
Updates the zephyr port to use refactored device structures introduced in
zephyr 2.3.
  • Loading branch information
MaureenHelm authored and dpgeorge committed Jun 12, 2020
1 parent 8b061f2 commit db02cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/zephyr/machine_i2c.c
Expand Up @@ -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) {
Expand Down

0 comments on commit db02cb0

Please sign in to comment.