Commit Graph

29539 Commits

Author SHA1 Message Date
Jeff Epler
530e5a1df2
Use standard validation function 2022-11-30 14:39:51 -06:00
Jeff Epler
6be0a425c7
Don't run maketranslationdata twice 2022-11-30 14:39:51 -06:00
Jeff Epler
9c11bb2ed9
Check that translations fit in expected character type 2022-11-30 14:39:50 -06:00
Jeff Epler
4671658c63
Use ASCII apostrophe in french translation, it saves flash space
.. it makes mchar_t, the type of storage needed for all the code points
in all translation messages, be an 8-bit type instead of a 16-bit type
2022-11-30 14:39:50 -06:00
Jeff Epler
c46e219795
Having an input-only pin is rare, save a string on other ports 2022-11-30 14:39:49 -06:00
Jeff Epler
4158ddfc17
compile out terse mismatch message when not used 2022-11-30 14:39:49 -06:00
Jeff Epler
a94663b3c9
use a standard error message 2022-11-30 14:39:49 -06:00
Jeff Epler
d39d146352
Merge some messages 2022-11-30 14:39:47 -06:00
Jeff Epler
d61fde349d
re-use an error message 2022-11-30 14:39:34 -06:00
Jeff Epler
5fb191b51c
Use a standard validator 2022-11-30 14:39:33 -06:00
Jeff Epler
f67bca94c4
On python3 log(0) raises math domain error, not zerodivisionerror 2022-11-30 14:39:33 -06:00
Jeff Epler
0e19fbb60f
Use a function to raise ZeroDivisionError, consistent string 2022-11-30 14:39:30 -06:00
Jeff Epler
2b01c139f5
use a standard validator function 2022-11-30 12:06:20 -06:00
Jeff Epler
db01dfea20
use a standard length validator 2022-11-30 12:06:19 -06:00
Jeff Epler
beb053a94d
more thoroughly disable UART when 2022-11-30 12:06:19 -06:00
Jeff Epler
7c9cd567a0
If uart is disabled, no pins will work; show NotImplementedError instead 2022-11-30 12:06:18 -06:00
Jeff Epler
8658e7a954
re-use length validator 2022-11-30 12:06:18 -06:00
Jeff Epler
ac999098ee
merge a message 2022-11-30 12:06:18 -06:00
Jeff Epler
7df21c9ecf
Combine a message 2022-11-30 12:06:17 -06:00
Jeff Epler
f652a898e7
merge two messages 2022-11-30 12:06:17 -06:00
Jeff Epler
6ac2022093
merge a message 2022-11-30 12:06:16 -06:00
Jeff Epler
284ac21f51
merge a message 2022-11-30 12:06:16 -06:00
Jeff Epler
2315b62bff
Remove unused static qstrs
These are turned into TRANSLATE() messages now, so the qstr version
would not be used.
2022-11-30 12:06:15 -06:00
Jeff Epler
10d92873c3
Don't generate QSTRs for wrong identifiers
MP_REGISTER_MODULE would use identifiers like
"MODULE_DEF_MP_QSTR___FUTURE__" which would in turn cause
a QSTR to be generated for it. This wasn't desirable, because the
qstr would never be used.

This clears out quite a bit of flash storage on the proxlight trinkey.
2022-11-30 12:06:15 -06:00
Dan Halbert
2f5ec1cab0
Merge pull request #7281 from jepler/esp32-trailing-dot
handle domain with trailing dot
2022-11-30 11:18:47 -05:00
Dan Halbert
c8390a7918
Merge pull request #7069 from jepler/exception-chain
Implement chained exceptions
2022-11-30 11:13:57 -05:00
Jeff Epler
286efc18fc
handle domain with trailing dot
Closes: #7032
2022-11-30 09:29:21 -06:00
Dan Halbert
e82a8bf8bc
Merge pull request #7280 from tannewt/fix_s3_sleep
Fix S3 deep sleep
2022-11-29 21:06:03 -05:00
Scott Shawcroft
a8c70aa7bd
Fix S3 deep sleep
Adding `-u ld_include_highint_hdl` forces the linker to keep the
high priority interrupt handler that calls the ipc_isr handler.

The deep sleep is waiting for this interrupt to be handled on core
0 before sleeping from core 1.

Fixes #6090
2022-11-29 17:20:38 -08:00
Jeff Epler
49ac82564c
Merge pull request #7278 from jepler/sdcardio-failures
Sdcardio failures
2022-11-29 15:13:53 -06:00
Jeff Epler
4af95f1cb1
atmel-samd: Ensure sdioio.SDCard pins are released 2022-11-29 13:45:18 -06:00
Jeff Epler
8e83f36c36
SAM E54 Xplained devkit hardfaults at start with -O2
I don't know why, but other samd5x are using -Os too, see the block above.

Closes: #7277
2022-11-29 13:05:39 -06:00
Dan Halbert
d364d1c516
Merge pull request #7276 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-29 13:32:46 -05:00
Hosted Weblate
eaf0d04a25
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-11-29 16:09:32 +01:00
Dan Halbert
1bcfff3716
Merge pull request #7272 from tannewt/picow_mdns
Add MDNS support to Pico W
2022-11-29 10:09:24 -05:00
MicroDev
8a9d841da9
Merge pull request #7275 from jshimbo/main
supervisor.ticks_ms() documentation has an error
2022-11-29 14:34:24 +05:30
MicroDev
e93af31b63
Merge pull request #7269 from jepler/socketpool-gaierror
Add SocketPool.gaierror
2022-11-29 14:33:12 +05:30
MicroDev
d349c221f7
Merge pull request #7273 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-29 14:32:26 +05:30
Clay
f3100af6ac
Translated using Weblate (Russian)
Currently translated at 35.2% (351 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2022-11-29 02:02:58 +01:00
Scott Shawcroft
99bc9127ab
Merge pull request #7263 from bablokb/devcontainer
Add codespaces support (for Cortex-M builds)
2022-11-28 16:25:55 -08:00
Scott Shawcroft
81afe05811
Merge pull request #7265 from jepler/wifi-monitor-docs
Fix documentation of wifi.Monitor
2022-11-28 16:23:40 -08:00
Scott Shawcroft
c13ca95da1
Add MDNS support to Pico W
This adds both cpy-MAC.local and circuitpython.local support.

Fixes #7214
2022-11-28 16:15:28 -08:00
Jeff Epler
aef55b7e41
Add SocketPool.gaierror
gaierror(-2) is raised in the failure case of getaddrinfo. This is
compatible with cpython's socket module.

Typical session:
```
>>> import socketpool
>>> import wifi
>>> socket = socketpool.SocketPool(wifi.radio)
>>> try: socket.getaddrinfo("boo", 0)
... except socket.gaierror as e: ee = e
...
>>> type(ee)
<class 'gaierror'>
>>> ee.errno == socket.EAI_NONAME
True
>>> ee.strerror
'Name or service not known'
>>> raise ee
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in <module>
gaierror: (-2, 'Name or service not known')
```

Closes: #6941
2022-11-28 16:57:44 -06:00
Scott Shawcroft
ad2d190507
Merge pull request #7247 from tannewt/picow_web_workflow
Enable* web workflow for Pico W
2022-11-28 14:19:42 -08:00
Bernhard Bablok
fba71010ac be more specific with exclude_patterns 2022-11-28 21:09:57 +01:00
Jeff Epler
e1c025d6dd
Fix documentation of wifi.Monitor
Its methods & properties were incorrectly documented as being directly
in 'wifi'
2022-11-28 13:30:08 -06:00
Scott Shawcroft
6457827514
Merge pull request #7253 from dhalbert/samd51-stereo-fix
fix playing mono files on stereo output
2022-11-28 10:54:28 -08:00
Bernhard Bablok
0a59b6560a added .devcontainer/* to exclude_patterns 2022-11-28 19:40:09 +01:00
Bernhard Bablok
0f3695d0f4 initial commit 2022-11-27 21:24:44 +01:00
Dan Halbert
1f3b2433c0
Merge pull request #7259 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-11-27 14:59:04 -05:00