From f6b08dc16a889dadc08298f54a76b22ea5aed77f Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Mon, 20 Jan 2025 16:19:34 +0000 Subject: [PATCH] Fix issue building in arm-none-eabi-gcc v6. Including stdio.h before MicroBit.h caused a stdio macro for putc(int, FILE*) to cause havoc on putc methods in multiple CODAL classes like serial. --- source/samples/MicrophoneTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/samples/MicrophoneTest.cpp b/source/samples/MicrophoneTest.cpp index c696ac10..cd8f1fc2 100644 --- a/source/samples/MicrophoneTest.cpp +++ b/source/samples/MicrophoneTest.cpp @@ -1,10 +1,10 @@ -#include #include "MicroBit.h" #include "SerialStreamer.h" #include "StreamNormalizer.h" #include "LevelDetector.h" #include "LevelDetectorSPL.h" #include "Tests.h" +#include static NRF52ADCChannel *mic = NULL; static SerialStreamer *streamer = NULL;