diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-12-19 10:27:56 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-12-19 10:34:56 -0600 |
| commit | 51af8aadb7d9b1a22fbff9bbb978878fc959b5a8 (patch) | |
| tree | d05ed4b1b1683c73229400b568cee21ffe5af8cb | |
| parent | a3559f14e729cadb1f59d31d3011eb46f9eaaf4c (diff) | |
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
| -rw-r--r-- | ports/nrf/common-hal/audiopwmio/PWMAudioOut.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c b/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c index d9226628f..cdb57bbe1 100644 --- a/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c +++ b/ports/nrf/common-hal/audiopwmio/PWMAudioOut.c @@ -225,10 +225,6 @@ void common_hal_audiopwmio_pwmaudioout_play(audiopwmio_pwmaudioout_obj_t* self, self->loop = loop; uint32_t sample_rate = audiosample_sample_rate(sample); - uint32_t max_sample_rate = 62500; - if (sample_rate > max_sample_rate) { - mp_raise_ValueError_varg(translate("Sample rate too high. It must be less than %d"), max_sample_rate); - } self->bytes_per_sample = audiosample_bits_per_sample(sample) / 8; uint32_t max_buffer_length; |
