Commit Graph

30145 Commits

Author SHA1 Message Date
Jeff Epler
cc16bd3d53
do not chain exceptions to themselves
cpython actually makes sure the newly chained exception doesn't create
a cycle (even indirectly); see _PyErr_SetObject use of "Floyd's cycle
detection algo". We'll go for the simpler solution of just checking
one level deep until it's clear we need to do more.

Closes: #7414
2023-01-04 08:40:20 -06:00
Dan Halbert
af3a2df328
Merge pull request #7413 from jepler/update-ulab
update to ulab 6.0.2
2023-01-03 23:03:36 -05:00
Jeff Epler
cd76ea2c90
update to ulab 6.0.2 2023-01-03 20:38:31 -06:00
2231puppy
38ebe90f7c Remove unexposed pins from E-Fidget 2023-01-03 19:24:48 -05:00
Jeff Epler
3d66ed27ce
oofatfs: enable use of random volume IDs
This may help address #7409 if the underlying cause is the deterministic
volume ID. However, not all boards have working urandom (samd21
at least does not) so a couple of fallbacks are attempted when it fails.

I verified that on a pico_w, each `storage.erase_filesystem()` gives
a distinct 32-bit volume ID (pico_w's urandom can never fail)
2023-01-03 17:18:29 -06:00
2231puppy
bea62030b7 Add E-Fidget board 2023-01-03 16:02:24 -05:00
Jozsef Kiraly
f23a96fa09
Update config with proper USB VID 2023-01-03 20:31:18 +00:00
Jozsef Kiraly
463c8d0f11
Merge pull request #2 from adafruit/main
Merge main
2023-01-03 20:28:18 +00:00
Pontus Oldberg
14417a21d1
Merge branch 'adafruit:main' into main 2023-01-03 09:31:49 +01:00
Dan Halbert
4cc7466617
Merge pull request #7408 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-01-02 19:59:21 -05:00
Hosted Weblate
54afbc7ed4
Merge remote-tracking branch 'origin/main' 2023-01-02 19:28:09 +01:00
Dan Halbert
3cf947ff8f
Merge pull request #7399 from CDarius/m5stack_atom_matrix
Added M5Stack Atom Matrix board
2023-01-02 13:28:04 -05:00
Hosted Weblate
c229a93c69
Merge remote-tracking branch 'origin/main' 2023-01-02 19:27:52 +01:00
Dan Halbert
6d9d593a0d
Merge pull request #7401 from CDarius/m5stack_atom_echo
Added M5Stack Atom Echo board
2023-01-02 13:27:48 -05:00
Hosted Weblate
86e2a24401
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2023-01-02 19:23:35 +01:00
Dan Halbert
d1cd096813
Merge pull request #7358 from dhalbert/read-only-mac-address-rp2040
Read only mac address rp2040
2023-01-02 13:23:28 -05:00
Dan Halbert
637d47b058
Merge pull request #7402 from CDarius/m5stack_atom_u
Added M5Stack Atom U board
2023-01-02 13:21:48 -05:00
Dan Halbert
03b43b7b3f complete rework for microcontroller.cpu.frequency and wifi.radio MAC addresses 2023-01-02 11:45:58 -05:00
Dan Halbert
a061729dcc
Update ports/espressif/boards/m5stack_atom_matrix/sdkconfig 2023-01-02 10:41:25 -05:00
Dan Halbert
f5c0996fb7
Update ports/espressif/boards/m5stack_atom_echo/sdkconfig 2023-01-02 10:41:11 -05:00
Dan Halbert
01f6762aa1
Update ports/espressif/boards/m5stack_atom_u/sdkconfig 2023-01-02 10:40:49 -05:00
Dan Halbert
2da4e06890 fix up esp32-camera submodule 2023-01-02 10:13:20 -05:00
Dan Halbert
a3adcf0e1a clarify read-only mac address; reuse translate msgs 2023-01-02 10:13:20 -05:00
Dan Halbert
4e31522d08
Merge pull request #7373 from jaygreco/add_nullbits_bit_c_pro
Add nullbits Bit-C PRO board
2023-01-02 09:22:16 -05:00
Dan Halbert
8f951bdda7
Merge pull request #7407 from jepler/fix-unsigned-shift
Fix several mistakes discovered by clang scan-build
2023-01-02 09:06:20 -05:00
Jeff Epler
ef8b297d7f
Avoid null pointer dereference when no kwargs
clang scan-build reports "Access to field 'table' results in a
dereference of a null pointer (loaded from variable 'kw_args')"
2023-01-01 16:56:53 -06:00
Jeff Epler
34043c2d38
Only store up to 'width' pixels, not 'stride'
error detected by clang scan-build static analysis
2023-01-01 16:45:40 -06:00
Jeff Epler
d808185744
Emphasize that ALIGN_BITS is a constant 2023-01-01 16:45:40 -06:00
Jeff Epler
d2361ae4f9
Avoid an undefined shift
(1 << 32), an operation on a signed 32-bit int, is undefined in C. The
operation on the unsigned int (1u<<32) is defined as zero, which is
the desired outcome (subtracting 1 yields the value with all bits set)

This problem was detected by clang scan-build static analysis
2023-01-01 16:45:35 -06:00
Jeff Epler
dc363e5a87
Merge pull request #7403 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-12-31 16:38:54 -06:00
Orlando Caro
91d28c7623
Translated using Weblate (Spanish)
Currently translated at 85.8% (856 of 997 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2022-12-31 18:50:31 +01:00
CDario
4fe00ef74a Added M5Stack Atom U 2022-12-31 06:21:49 +00:00
CDario
dec0b272fe Fixed I2C bus definition 2022-12-30 23:21:46 +00:00
CDario
58e32bd2cb Fixed speacker and microphone pins definition 2022-12-30 23:09:38 +00:00
CDario
52ee5a9272 Added M5Stack Atom Echo 2022-12-30 20:21:00 +00:00
CDario
42195a4a29 Added M5Stack Atom Matrix board 2022-12-30 17:37:37 +00:00
Dan Halbert
ed5d9ac448
Merge pull request #7392 from chukwon/main
Update pins.c for lolin_c3_mini
2022-12-30 00:08:39 -05:00
Dan Halbert
e8ee4b220e
Merge pull request #7398 from dhalbert/cache-memory-fence
Use memory fence when disabling cache to avoid -O2 problems
2022-12-30 00:08:24 -05:00
Dan Halbert
cc92ce4820 Use memory fence when disabling cache to avoid -O2 problems 2022-12-29 19:49:40 -05:00
Dan Halbert
a424fa0596
Merge pull request #7387 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-12-28 21:40:02 -05:00
Dan Halbert
3d6f377226
Fix single quote in ru.po 2022-12-28 18:36:25 -05:00
Hosted Weblate
7702bab47d
Merge remote-tracking branch 'origin/main' 2022-12-29 00:32:55 +01:00
Dan Halbert
70b838a42d
Merge pull request #7395 from jepler/fix-getenv_int-dos-newlines
Fix getenv_int handling of "dos-style" newlines
2022-12-28 18:32:38 -05:00
Jeff Epler
7a005aa96b
break out after reading the value
This is a small optimization, it avoids reading the full file when an
early key is requested.

In the case of an *invalid* TOML file such as
```
K=80
K=81
```
this stops the value of K actually returned being 8081 and makes it 80
instead; but as it's a malformed file it doesn't really matter much.
2022-12-28 13:24:38 -06:00
Jeff Epler
2c46e785f6
update test results 2022-12-28 12:38:07 -06:00
Jeff Epler
15a24b400d
Permit trailing whitespace in getenv_int 2022-12-28 12:37:27 -06:00
Jeff Epler
83bbfd1815
Allow the tests to directly call the non-heap using _int and _str variants
.. of getenv. These can have their own special bugs.
2022-12-28 12:36:58 -06:00
Jeff Epler
edcb832661
These need to be double-blackslashed 2022-12-28 12:35:48 -06:00
chukwon
a932fb3fb1
Update pins.c
also match lolin_c3_mini pins definition of new version
2022-12-28 21:25:25 +08:00
Hosted Weblate
574c177a92
Merge remote-tracking branch 'origin/main' 2022-12-28 04:47:24 +01:00