From 745ff8f8c185ea924922e708d1257f4c6377fb90 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 2 Jul 2019 18:15:23 -0700 Subject: [PATCH] Fix Group subscr to detect delete correctly Fixes #1957 --- shared-bindings/displayio/Group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/displayio/Group.c b/shared-bindings/displayio/Group.c index 76719c5808..5a35424ce4 100644 --- a/shared-bindings/displayio/Group.c +++ b/shared-bindings/displayio/Group.c @@ -295,7 +295,7 @@ STATIC mp_obj_t group_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t valu if (value == MP_OBJ_SENTINEL) { // load return common_hal_displayio_group_get(self, index); - } else if (value == mp_const_none) { + } else if (value == MP_OBJ_NULL) { common_hal_displayio_group_pop(self, index); } else { common_hal_displayio_group_set(self, index, value);