Skip to content

Commit ace25e8

Browse files
committed
correcting vectorshape location property
1 parent 3ac696e commit ace25e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/vectorio/VectorShape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void common_hal_vectorio_vector_shape_set_location(vectorio_vector_shape_t *self
278278
mp_arg_validate_length(tuple_len, 2, MP_QSTR_location);
279279

280280
mp_int_t x = mp_arg_validate_type_int(tuple_items[0], MP_QSTR_x);
281-
mp_int_t y = mp_arg_validate_type_int(tuple_items[0], MP_QSTR_y);
281+
mp_int_t y = mp_arg_validate_type_int(tuple_items[1], MP_QSTR_y);
282282
bool dirty = false;
283283
if (self->x != x) {
284284
check_bounds_and_set_x(self, x);

0 commit comments

Comments
 (0)