Skip to content

Commit

Permalink
Fix issue building in arm-none-eabi-gcc v6.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
microbit-carlos committed Jan 20, 2025
1 parent 0bb62e7 commit f6b08dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/samples/MicrophoneTest.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <stdio.h>
#include "MicroBit.h"
#include "SerialStreamer.h"
#include "StreamNormalizer.h"
#include "LevelDetector.h"
#include "LevelDetectorSPL.h"
#include "Tests.h"
#include <stdio.h>

static NRF52ADCChannel *mic = NULL;
static SerialStreamer *streamer = NULL;
Expand Down

0 comments on commit f6b08dc

Please sign in to comment.