Skip to content

Commit 03fdc1e

Browse files
authored
Merge branch 'adafruit:main' into main
2 parents 74ad733 + 9beefdb commit 03fdc1e

File tree

143 files changed

+2733
-1570
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+2733
-1570
lines changed

.github/actions/deps/external/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ runs:
2525
inputs.port != 'espressif'
2626
uses: carlosperate/arm-none-eabi-gcc-action@v1
2727
with:
28+
# When changing this update what Windows grabs too!
2829
release: '13.2.Rel1'
2930

3031
# espressif

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ jobs:
249249
python3 -c "import sys, locale; print(sys.getdefaultencoding(), locale.getpreferredencoding(False))"
250250
- name: Install dependencies
251251
run: |
252-
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-win32.zip
252+
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip
253253
unzip -q -d /tmp gcc-arm.zip
254-
tar -C /tmp/gcc-arm-none-* -cf - . | tar -C /usr/local -xf -
254+
tar -C /tmp/arm-gnu-toolchain* -cf - . | tar -C /usr/local -xf -
255255
pip install wheel
256256
# requirements_dev.txt doesn't install on windows. (with msys2 python)
257257
# instead, pick a subset for what we want to do

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ pseudoxml:
226226
.PHONY: all-source
227227
all-source:
228228

229+
TRANSLATE_CHECK_SUBMODULES=if ! [ -f extmod/ulab/README.md ]; then python tools/ci_fetch_deps.py translate; fi
229230
TRANSLATE_COMMAND=find $(TRANSLATE_SOURCES) -type d \( $(TRANSLATE_SOURCES_EXC) \) -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) -print | (LC_ALL=C sort) | xgettext -x locale/synthetic.pot -f- -L C -s --add-location=file --keyword=MP_ERROR_TEXT -o - | sed -e '/"POT-Creation-Date: /d'
230231
locale/circuitpython.pot: all-source
232+
$(TRANSLATE_CHECK_SUBMODULES)
231233
$(TRANSLATE_COMMAND) > $@
232234

233235
# Historically, `make translate` updated the .pot file and ran msgmerge.
@@ -253,6 +255,7 @@ merge-translate:
253255

254256
.PHONY: check-translate
255257
check-translate:
258+
$(TRANSLATE_CHECK_SUBMODULES)
256259
$(TRANSLATE_COMMAND) > locale/circuitpython.pot.tmp
257260
$(PYTHON) tools/check_translations.py locale/circuitpython.pot.tmp locale/circuitpython.pot; status=$$?; rm -f locale/circuitpython.pot.tmp; exit $$status
258261

@@ -325,6 +328,11 @@ clean-nrf:
325328
clean-stm:
326329
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express clean
327330

331+
extmod/ulab/README.md: fetch-translate-submodules
332+
333+
.PHONY: fetch-translate-submodules
334+
fetch-translate-submodules:
335+
$(PYTHON) tools/ci_fetch_deps.py translate
328336

329337
.PHONY: fetch-all-submodules
330338
fetch-all-submodules:

extmod/modjson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ STATIC mp_uint_t json_python_readinto(mp_obj_t obj, void *buf, mp_uint_t size, i
188188
}
189189

190190
STATIC mp_obj_t _mod_json_load(mp_obj_t stream_obj, bool return_first_json) {
191-
const mp_stream_p_t *stream_p = mp_proto_get(MP_QSTR_protocol_stream, stream_obj);
191+
const mp_stream_p_t *stream_p = mp_proto_get(0, stream_obj);
192192
json_stream_t s;
193193
uint8_t character_buffer[CIRCUITPY_JSON_READ_CHUNK_SIZE];
194194
if (stream_p == NULL) {

0 commit comments

Comments
 (0)