瀏覽代碼

Merge pull request #338 from FrankBoesing/patch-4

fix warnings
dds
Paul Stoffregen 4 年之前
父節點
當前提交
18a8d0ce79
No account linked to committer's email address
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      input_i2s.cpp
  2. +1
    -1
      input_i2s2.cpp

+ 1
- 1
input_i2s.cpp 查看文件

@@ -122,7 +122,7 @@ void AudioInputI2S::isr(void)
dest_left = &(left->data[offset]);
dest_right = &(right->data[offset]);
AudioInputI2S::block_offset = offset + AUDIO_BLOCK_SAMPLES/2;
arm_dcache_delete(src, sizeof(i2s_rx_buffer) / 2);
arm_dcache_delete((void*)src, sizeof(i2s_rx_buffer) / 2);
do {
*dest_left++ = *src++;
*dest_right++ = *src++;

+ 1
- 1
input_i2s2.cpp 查看文件

@@ -103,7 +103,7 @@ void AudioInputI2S2::isr(void)
dest_right = &(right->data[offset]);
AudioInputI2S2::block_offset = offset + AUDIO_BLOCK_SAMPLES/2;

arm_dcache_delete(src, sizeof(i2s2_rx_buffer) / 2);
arm_dcache_delete((void*)src, sizeof(i2s2_rx_buffer) / 2);

do {
*dest_left++ = *src++;

Loading…
取消
儲存