Commit Graph

29868 Commits

Author SHA1 Message Date
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
Jonny Bergdahl e62e9bd4af
Translated using Weblate (Swedish)
Currently translated at 100.0% (997 of 997 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-28 04:47:24 +01:00
Wellington Terumi Uemura 373db78978
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (997 of 997 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-12-28 04:47:23 +01:00
Dan Halbert 81e9f5013e
Merge pull request #7390 from RetiredWizard/teensy41-uartfix
mimxrt10xx/common-hal/UART.C: Fix for bits parameter validation.
2022-12-27 22:47:09 -05:00
RetiredWizard 7a40d449e6 mimxrt10xx/common-hal/UART.C: Fix for bits parameter validation.
I believe this will resolve issue #7389
2022-12-27 22:07:54 -05:00
Hosted Weblate ac3b46111b
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/
2022-12-27 19:16:00 +01:00
Hosted Weblate e0343bb213
Merge remote-tracking branch 'origin/main' 2022-12-27 19:15:57 +01:00
Jeff Epler 785ebe1f41
Merge pull request #7382 from jepler/translate-name-not-known
Make the "name or service not known" message translatable
2022-12-27 12:15:52 -06:00
Jonny Bergdahl 2ad767ee4b
Translated using Weblate (Swedish)
Currently translated at 100.0% (996 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-27 19:02:03 +01:00
Blinka CircuitPython 10640c9065
Translated using Weblate (French)
Currently translated at 97.0% (967 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-12-27 19:02:03 +01:00
Blinka CircuitPython d92cb154d6
Translated using Weblate (Filipino)
Currently translated at 33.4% (333 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fil/
2022-12-27 19:02:02 +01:00
Hosted Weblate 7925069a77
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/
2022-12-27 18:42:37 +01:00
Hosted Weblate 2f54f12b86
Merge remote-tracking branch 'origin/main' 2022-12-27 18:42:35 +01:00
Clay fc67e87942
Translated using Weblate (Russian)
Currently translated at 35.6% (355 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2022-12-27 18:42:35 +01:00
Jeff Epler b0a635af4d
Merge pull request #7381 from jepler/issue7380
Correctly handle settings.toml that ends without a newline
2022-12-27 11:42:24 -06:00
Pontus Oldberg 2b8aa9caae
Merge branch 'adafruit:main' into main 2022-12-27 00:33:47 +01:00
Jeff Epler 928fb0a9c4
Make the "name or service not known" message translatable 2022-12-26 13:58:31 -06:00
Jeff Epler 337b1da143
Explicitly test \n and \r\n files
\r\n files must be working due to micropython's built in handling of
text-mode files, I didn't implement it.

\r-only (old mac text-mode files) are explicitly not supported by
the toml format.
2022-12-26 10:53:58 -06:00
Jeff Epler f6b69cf5e3
Allow settings.toml to end without a newline 2022-12-26 10:53:58 -06:00
Jeff Epler 4dbbfa0931
Print errors to repl about getenv 2022-12-26 10:53:58 -06:00
Jeff Epler 2901399cc6
No need to depend it here, conf.py runs `make stubs` 2022-12-26 10:53:57 -06:00
Jay Greco cdefd2e674 Add nullbits Bit-C PRO board 2022-12-25 15:21:32 +00:00
Dan Halbert 0d3b7770d1
Merge pull request #7378 from DavePutz/issue_7325
Issue 7352 - set max value of a pulsein
2022-12-24 19:16:44 -05:00
Dan Halbert 88d0eba7f4
Merge pull request #7258 from m1cha1s/ESP32DevKitV1
Esp32 dev kit v1
2022-12-24 09:12:45 -05:00
root 94dbefacf1 Issue 7352 - set max value of a pulsein 2022-12-23 19:17:45 -06:00