diff --git a/lib/micropython-microbit-v2 b/lib/micropython-microbit-v2 index 96082ef..17aaa11 160000 --- a/lib/micropython-microbit-v2 +++ b/lib/micropython-microbit-v2 @@ -1 +1 @@ -Subproject commit 96082effd737401fdc2bc7631c82db750a6cba4b +Subproject commit 17aaa115ad4ad285377b2eb210f37b0e94f61aa9 diff --git a/src/microbithal_js.c b/src/microbithal_js.c index 33a698d..a2ebdc1 100644 --- a/src/microbithal_js.c +++ b/src/microbithal_js.c @@ -455,16 +455,7 @@ void microbit_hal_audio_raw_set_rate(uint32_t sample_rate) { } void microbit_hal_audio_raw_write_data(const uint8_t *buf, size_t num_samples) { - bool silence = true; - for (const uint8_t *sample = buf; sample < buf + num_samples; ++sample) { - if (*sample != 128) { - silence = false; - break; - } - } - if (!silence) { - mp_js_hal_audio_write_data(buf, num_samples); - } + mp_js_hal_audio_write_data(buf, num_samples); } void microbit_hal_audio_speech_init(uint32_t sample_rate) {