From 11ef0b48c0f4b6d2ab82af74be250d8bd9da5b39 Mon Sep 17 00:00:00 2001 From: gamblor21 Date: Wed, 8 Dec 2021 19:28:04 -0600 Subject: [PATCH] Change map to tuple to save memory and match _write --- shared-module/is31fl3741/IS31FL3741.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-module/is31fl3741/IS31FL3741.c b/shared-module/is31fl3741/IS31FL3741.c index ae27100694..8cd169f8e8 100644 --- a/shared-module/is31fl3741/IS31FL3741.c +++ b/shared-module/is31fl3741/IS31FL3741.c @@ -61,7 +61,7 @@ void common_hal_is31fl3741_IS31FL3741_construct(is31fl3741_IS31FL3741_obj_t *sel mp_obj_t *items; size_t len; - mp_obj_list_get(mapping, &len, &items); + mp_obj_tuple_get(mapping, &len, &items); if (len != (size_t)(self->scale_width * self->scale_height * 3)) { mp_raise_ValueError(translate("LED mappings must match display size"));