Skip to content

Commit 2df9373

Browse files
committed
Fixes 2 issues with spi3wire
1 parent 281bd70 commit 2df9373

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext_mod/spi3wire/src/spi3wire.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ static mp_obj_t spi3wire_make_new(const mp_obj_type_t *type, size_t n_args, size
5454
{ MP_QSTR_use_dc_bit, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = true } },
5555
{ MP_QSTR_dc_zero_on_data, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = false } },
5656
{ MP_QSTR_lsb_first, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = false } },
57-
{ MP_QSTR_dc_data_high, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = true } },
5857
{ MP_QSTR_cs_high_active, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = false } },
5958
{ MP_QSTR_del_keep_cs_inactive, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = false } }
6059
};
@@ -138,7 +137,7 @@ static mp_obj_t spi3wire_init(size_t n_args, const mp_obj_t *pos_args, mp_map_t
138137
return mp_const_none;
139138
}
140139

141-
static MP_DEFINE_CONST_FUN_OBJ_KW(spi3wire_init_obj, 8, spi3wire_init);
140+
static MP_DEFINE_CONST_FUN_OBJ_KW(spi3wire_init_obj, 3, spi3wire_init);
142141

143142

144143
static mp_obj_t spi3wire_tx_param(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args)

0 commit comments

Comments
 (0)