Unverified Commit 832791c3 authored by Wolle's avatar Wolle Committed by GitHub

fix copy/paste err

parent a42002e4
...@@ -4811,7 +4811,7 @@ bool Audio::playSample(int16_t sample[2]) { ...@@ -4811,7 +4811,7 @@ bool Audio::playSample(int16_t sample[2]) {
esp_err_t err = i2s_write((i2s_port_t)m_i2s_num, (const char*)&s32, sizeof(uint32_t), &m_i2s_bytesWritten, 0); // no wait esp_err_t err = i2s_write((i2s_port_t)m_i2s_num, (const char*)&s32, sizeof(uint32_t), &m_i2s_bytesWritten, 0); // no wait
#endif #endif
if(err != ESP_OK) { if(err != ESP_OK) {
if(err /home/wolle/Arduino/AudioI2S/src/Audio.h!= 263) {log_e("ESP32 Errorcode: %i", err);} if(err != 263) {log_e("ESP32 Errorcode: %i", err);}
return false; return false;
} }
if(m_i2s_bytesWritten < 4) { // no more space in dma buffer --> break and try it later if(m_i2s_bytesWritten < 4) { // no more space in dma buffer --> break and try it later
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment