Browse Source

Update audio.c

heyuanjie87 7 năm trước cách đây
mục cha
commit
fa09a700c1
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      components/drivers/audio/audio.c

+ 4 - 0
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;
 }