Skip to content

Commit 6cdb43e

Browse files
committed
Compile error SAMD boards
1 parent a9e3f65 commit 6cdb43e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AudioBasic/Int24.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class int24_t {
4343
set((int32_t)in);
4444
}
4545

46-
#if defined(STM32) || defined(ESP32C3) || defined(TARGET_RP2040) || defined(AUDIOKIT_USE_IDF)
46+
#if defined(STM32) || defined(ESP32C3) || defined(TARGET_RP2040) || defined(AUDIOKIT_USE_IDF) || defined(ARDUINO_ARCH_SAMD)
4747

4848
int24_t(const int &in) {
4949
set(in);

src/AudioTools/AudioPrint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ class VolumePrint : public AudioPrint {
707707
T *bufferT = (T*)buffer;
708708
int samplesCount = size/sizeof(T);
709709
for (int j=0;j<samplesCount;j++){
710-
float tmp = static_cast<float>(abs(bufferT[j]));
710+
float tmp = abs(static_cast<float>(bufferT[j]));
711711
updateVolume(tmp,j);
712712
}
713713
commit();

0 commit comments

Comments
 (0)