Skip to content

Commit ffae82d

Browse files
committed
Simplify audiofilter construction through better default parameters
1 parent cd321fe commit ffae82d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

shared-module/audiofilters/Filter.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ void common_hal_audiofilters_filter_construct(audiofilters_filter_obj_t *self,
5050

5151
// The below section sets up the effect's starting values.
5252

53-
if (filter == MP_OBJ_NULL) {
54-
filter = mp_const_none;
55-
}
5653
common_hal_audiofilters_filter_set_filter(self, filter);
5754

5855
synthio_block_assign_slot(mix, &self->mix, MP_QSTR_mix);

0 commit comments

Comments
 (0)