From fa09a700c1358da269b73900ab4f13d0b82a16a2 Mon Sep 17 00:00:00 2001 From: heyuanjie87 Date: Tue, 27 Mar 2018 13:59:22 +0800 Subject: [PATCH] Update audio.c --- components/drivers/audio/audio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/drivers/audio/audio.c b/components/drivers/audio/audio.c index 66d9557d4..87bb72605 100644 --- a/components/drivers/audio/audio.c +++ b/components/drivers/audio/audio.c @@ -294,6 +294,10 @@ static rt_size_t _audio_dev_write(struct rt_device *dev, rt_off_t pos, const voi _audio_send_replay_frame(audio); } + else + { + rt_hw_interrupt_enable(level); + } return size; }