Skip to content

Commit efaa760

Browse files
CI: Reduce the min GCC version used to match what MakeCode (PXT) uses. (#99)
* CI: Reduce the min GCC version used to match what MakeCode (PXT) uses. * 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.
1 parent 893d446 commit efaa760

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-20.04, macos-13, windows-2019]
14-
gcc: ['7-2017-q4', 'latest']
14+
gcc: ['6-2016-q4', 'latest'] # Min version 6.2 as used in pext/yotta:latest docker image
1515
cmake: ['3.6.0', ''] # Empty string installs the latest CMake release
1616
fail-fast: false
1717
runs-on: ${{ matrix.os }}

source/samples/MicrophoneTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#include <stdio.h>
21
#include "MicroBit.h"
32
#include "SerialStreamer.h"
43
#include "StreamNormalizer.h"
54
#include "LevelDetector.h"
65
#include "LevelDetectorSPL.h"
76
#include "Tests.h"
7+
#include <stdio.h>
88

99
static NRF52ADCChannel *mic = NULL;
1010
static SerialStreamer *streamer = NULL;

0 commit comments

Comments
 (0)