Skip to content

Commit 11ef0b4

Browse files
committed
Change map to tuple to save memory and match _write
1 parent 9fafd7d commit 11ef0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/is31fl3741/IS31FL3741.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void common_hal_is31fl3741_IS31FL3741_construct(is31fl3741_IS31FL3741_obj_t *sel
6161

6262
mp_obj_t *items;
6363
size_t len;
64-
mp_obj_list_get(mapping, &len, &items);
64+
mp_obj_tuple_get(mapping, &len, &items);
6565

6666
if (len != (size_t)(self->scale_width * self->scale_height * 3)) {
6767
mp_raise_ValueError(translate("LED mappings must match display size"));

0 commit comments

Comments
 (0)