port_i2s_play: remove build error

This commit is contained in:
Jeff Epler 2021-01-08 08:47:13 -06:00
parent 0b7a4c4b2b
commit 12264cca34

View File

@ -190,10 +190,6 @@ void port_i2s_allocate_init(i2s_t *self, bool left_justified) {
void port_i2s_play(i2s_t *self, mp_obj_t sample, bool loop) {
if (common_hal_audiobusio_i2sout_get_playing(self)) {
common_hal_audiobusio_i2sout_stop(self);
}
self->sample = sample;
self->loop = loop;
self->bytes_per_sample = audiosample_bits_per_sample(sample) / 8;