Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
tueddy committed Sep 29, 2024
1 parent 7646706 commit 6e93af8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Bluetooth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "BluetoothA2DPSource.h"
#if (defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 3))
#include "ESP_I2S.h"
I2SClass i2s;
I2SClass i2s;
#endif
#endif

Expand Down Expand Up @@ -182,7 +182,8 @@ void Bluetooth_Init(void) {
i2s.setPins(I2S_BCLK, I2S_LRC, I2S_DOUT);
if (!i2s.begin(I2S_MODE_STD, 44100, I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_STEREO, I2S_STD_SLOT_BOTH)) {
Log_Println("Failed to initialize I2S!", LOGLEVEL_ERROR);
while (1); // do nothing
while (1)
; // do nothing
}
a2dp_sink = new BluetoothA2DPSink(i2s);
a2dp_sink->set_rssi_calldoxback(rssi);
Expand Down

0 comments on commit 6e93af8

Please sign in to comment.