Skip to content

Commit c54648c

Browse files
authored
Merge pull request #7758 from jposada202020/correcting_vector_shape_location
correcting vectorshape location property
2 parents b75d99c + ace25e8 commit c54648c

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)