10000 RGBMatrix: this comment no longer describes the code · domdfcoding/circuitpython@8c455f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c455f2

Browse files
committed
RGBMatrix: this comment no longer describes the code
... allocate_display_bus_or_raise() uses fixed storage, not heap storage.
1 parent 37cb6ba commit 8c455f2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

shared-bindings/rgbmatrix/RGBMatrix.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ STATIC mp_obj_t rgbmatrix_rgbmatrix_make_new(const mp_obj_type_t *type, size_t n
192192
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
193193
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
194194

195-
// Because interrupt handlers point directly at rgbmatrix objects,
196-
// it is NOT okay to move them to the long-lived pool later. Allocate
197-
// them there to begin with, since generally they'll be long-lived anyway.
198195
rgbmatrix_rgbmatrix_obj_t *self = &allocate_display_bus_or_raise()->rgbmatrix;
199196
self->base.type = &rgbmatrix_RGBMatrix_type;
200197

0 commit comments

Comments
 (0)
0