Skip to content

Commit 51af8aa

Browse files
committed
nrf: PWMAudioOut: 62500Hz limitation is not needed
.. and it gets in the way of some example programs, due to the way circuitplayground library generates different frequency sine waves
1 parent a3559f1 commit 51af8aa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ports/nrf/common-hal/audiopwmio/PWMAudioOut.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,6 @@ void common_hal_audiopwmio_pwmaudioout_play(audiopwmio_pwmaudioout_obj_t* self,
225225
self->loop = loop;
226226

227227
uint32_t sample_rate = audiosample_sample_rate(sample);
228-
uint32_t max_sample_rate = 62500;
229-
if (sample_rate > max_sample_rate) {
230-
mp_raise_ValueError_varg(translate("Sample rate too high. It must be less than %d"), max_sample_rate);
231-
}
232228
self->bytes_per_sample = audiosample_bits_per_sample(sample) / 8;
233229

234230
uint32_t max_buffer_length;

0 commit comments

Comments
 (0)