Skip to content

Commit 037a249

Browse files
committed
there must be a better way to do this, but this works
1 parent 14637cd commit 037a249

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-module/audiomixer/Mixer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333

3434
#include "py/runtime.h"
3535
#include "shared-module/audiocore/__init__.h"
36-
#include "shared-module/audiocore/RawSample.h"
3736

38-
#if (defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1))
39-
#include "periph.h"
37+
#if CIRCUITPY_MICROCONTROLLER
38+
// This looks hinky, but it's the way that the macros like __QADD16 are made available!
39+
#include "shared-bindings/microcontroller/Pin.h"
4040
#endif
4141

4242
void common_hal_audiomixer_mixer_construct(audiomixer_mixer_obj_t *self,

0 commit comments

Comments
 (0)