Skip to content

Commit b87f493

Browse files
committed
🐛 fix compile warning, undefine var
1 parent 93b50db commit b87f493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/audio/audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static rt_err_t _audio_send_replay_frame(struct rt_audio_device *audio)
3333
rt_err_t result = RT_EOK;
3434
rt_uint8_t *data;
3535
rt_size_t dst_size, src_size;
36-
rt_uint16_t position, remain_bytes, index = 0;
36+
rt_uint16_t position, remain_bytes = 0, index = 0;
3737
struct rt_audio_buf_info *buf_info;
3838

3939
RT_ASSERT(audio != RT_NULL);

0 commit comments

Comments
 (0)