Content-Length: 378141 | pFad | http://github.com/adafruit/circuitpython/commit/a6a308ce57be3af91730a8329e34b36ecbb6b50f

64 smoke tests on RP2040 and nRF52840 (BLE periph tested · adafruit/circuitpython@a6a308c · GitHub
Skip to content

Commit a6a308c

Browse files
committed
smoke tests on RP2040 and nRF52840 (BLE periph tested
1 parent c11f2af commit a6a308c

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

extmod/modjson.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ STATIC mp_obj_t mod_json_loads(mp_obj_t obj) {
441441
mp_get_buffer_raise(obj, &bufinfo, MP_BUFFER_READ);
442442
vstr_t vstr = {bufinfo.len, bufinfo.len, (char *)bufinfo.buf, true};
443443
mp_obj_stringio_t sio = {{&mp_type_stringio}, &vstr, 0, MP_OBJ_NULL};
444-
return mod_json_load(MP_OBJ_FROM_PTR(&sio), false);
444+
// CIRCUITPY-CHANGE
445+
return _mod_json_load(MP_OBJ_FROM_PTR(&sio), false);
445446
}
446447
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_json_loads_obj, mod_json_loads);
447448

extmod/modselect.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ STATIC mp_uint_t poll_set_poll_until_ready_or_timeout(poll_set_t *poll_set, size
407407
// CIRCUITPY-CHANGE: check for ctrl-C interrupt
408408
if (mp_hal_is_interrupted()) {
409409
return 0;
410-
411-
// CIRCUITPY-CHANGE: mp_event_wait_* do RUN_BACKGROUND_TASKS
410+
}
411+
// CIRCUITPY-CHANGE: mp_event_wait_ms() and mp_event_wait_indefinite() will do RUN_BACKGROUND_TASKS
412412
if (has_timeout) {
413413
mp_event_wait_ms(timeout - elapsed);
414414
} else {

py/misc.h

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
#include <stdint.h>
3535
#include <stddef.h>
3636

37+
// CIRCUITPY-CHANGE: include directly instead of depending on previous includes
38+
#include "mpconfig.h"
39+
3740
typedef unsigned char byte;
3841
typedef unsigned int uint;
3942

@@ -135,6 +138,9 @@ size_t m_get_peak_bytes_allocated(void);
135138
// align ptr to the nearest multiple of "alignment"
136139
#define MP_ALIGN(ptr, alignment) (void *)(((uintptr_t)(ptr) + ((alignment) - 1)) & ~((alignment) - 1))
137140

141+
// CIRCUITPY-CHANGE
142+
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
143+
138144
/** unichar / UTF-8 *********************************************/
139145

140146
#if MICROPY_PY_BUILTINS_STR_UNICODE

py/vm.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ unwind_jump:;
14451445
// - constant GeneratorExit object, because it's const
14461446
// - exceptions re-raised by END_FINALLY
14471447
// - exceptions re-raised explicitly by "raise"
1448-
// CIRCUITPY-CHANGE: MICROPY_CONST_GENERATOREXIT_OBJ check; true just helps formatting.
1448+
// CIRCUITPY-CHANGE: MICROPY_CONST_GENERATOREXIT_OBJ check; true just helps formatting.
14491449
if ( true
14501450
#if MICROPY_CONST_GENERATOREXIT_OBJ
14511451
&& nlr.ret_val != &mp_const_GeneratorExit_obj
@@ -1498,7 +1498,7 @@ unwind_jump:;
14981498
mp_obj_t ret_val_obj = MP_OBJ_FROM_PTR(nlr.ret_val);
14991499
#if MICROPY_CPYTHON_EXCEPTION_CHAIN
15001500
if (active_exception != MP_OBJ_NULL && active_exception != ret_val_obj) {
1501-
mp_store_attr(obj, MP_QSTR___context__, active_exception);
1501+
mp_store_attr(ret_val_obj, MP_QSTR___context__, active_exception);
15021502
}
15031503
#endif
15041504
// push exception object so it can be handled by bytecode

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/a6a308ce57be3af91730a8329e34b36ecbb6b50f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy