From 473bdf48f61998ee9c51aa16c159bbc4df1d15b6 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 13 Feb 2019 00:35:14 -0800 Subject: A safe mode fix and displayio fixes * Fixes safe mode on the SAMD51. The "preserved" value was being clobbered by the bootloader. * Fixes auto-reload loop when in safe mode. * Fixes reading Group children with []. * Check that a TileGrid actually moves before queueing a refresh. --- shared-bindings/displayio/Group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared-bindings') diff --git a/shared-bindings/displayio/Group.c b/shared-bindings/displayio/Group.c index 421dc1ae5..7b79f3229 100644 --- a/shared-bindings/displayio/Group.c +++ b/shared-bindings/displayio/Group.c @@ -256,7 +256,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 MP_OBJ_NEW_SMALL_INT(common_hal_displayio_group_get(self, index)); + return common_hal_displayio_group_get(self, index); } else if (value == mp_const_none) { common_hal_displayio_group_pop(self, index); } else { -- cgit v1.2.3