Jeff Epler
a1dd8405f4
use a more standard method of forward-declaring the structure
2022-12-07 15:14:30 -06:00
Jeff Epler
7583ccad2a
Ensure orderly shutdown of ssl socket
...
A crash would occur if an SSL socket was not shut down before
`gc_deinit()`.
I do not fully understand the root cause, but some object deinitialization
/ deallocation prior to `gc_deinit` leaves the SSL object in an
inconsistent state.
Rather than resolve the root cause, instead ensure that the closing of
the user socket also closes the SSL socket.
Closes : #6502
2022-12-01 19:29:20 -06:00
Dan Halbert
082b0d1aed
Merge pull request #7191 from jepler/fastpixelmap
...
Add a fast PixelMap-like class
2022-12-01 11:43:00 -05:00
Jeff Epler
9c6c25ae57
Merge pull request #7286 from tannewt/fix_web_workflow_write
...
Fix writing files from web workflow
2022-12-01 08:30:47 -06:00
Jeff Epler
e468746b0b
Merge pull request #7289 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-12-01 08:13:35 -06:00
Hosted Weblate
4f471dbd08
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-01 07:55:39 +01:00
MicroDev
33e8a9759c
Merge pull request #7287 from jepler/merge-weblate-manually
...
Merge weblate manually
2022-12-01 12:25:30 +05:30
Jeff Epler
08d372aedc
Merge remote-tracking branch 'origin/main' into merge-weblate-manually
2022-11-30 21:09:31 -06:00
Dan Halbert
b41f7460b7
Merge pull request #7181 from jepler/more-string-qstr-savings
...
More space savings
2022-11-30 21:36:07 -05:00
foamyguy
ae8fb279ce
Merge remote-tracking branch 'jepler/fastpixelmap' into fastpixelmap
2022-11-30 19:18:01 -06:00
foamyguy
0563487433
get slicing
2022-11-30 19:16:20 -06:00
Scott Shawcroft
65e913ecd6
Fix writing files from web workflow
...
Pico W changes assumed that f_write could handle a NULL fourth
argument. It can't.
2022-11-30 14:22:46 -08:00
Jeff Epler
d2e2a61075
Reworking how "run list" works saves a dozen bytes
2022-11-30 14:39:54 -06:00
Jeff Epler
fb66a6bfe5
Don't use "offset" as an identifier
2022-11-30 14:39:54 -06:00
Jeff Epler
e5b83821f8
fr should fit in 8 bits
2022-11-30 14:39:53 -06:00
Jeff Epler
d16c9515b7
Compact the characters of certain translations, so they fit in uint8_t
...
This saves a few hundred bytes on the affected translations, such
as `el` which shrunk from 186152 to 185588 bytes (564 bytes saved).
2022-11-30 14:39:53 -06:00
Jeff Epler
9916b39b65
update nl translation to fit in uint8_t
2022-11-30 14:39:52 -06:00
Jeff Epler
ed33f65fd9
move define to proper place
2022-11-30 14:39:52 -06:00
Jeff Epler
0f6091cc73
update fil translation to fit in uint8_t
2022-11-30 14:39:52 -06:00
Jeff Epler
19a3893d40
update translations again
2022-11-30 14:39:51 -06:00
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
Hosted Weblate
391efe4d8b
Merge remote-tracking branch 'origin/main'
2022-11-30 21:18:36 +01:00
Jonny Bergdahl
2e9954e43d
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-11-30 21:18:36 +01:00
Dan Halbert
845b68c351
Merge pull request #7204 from jepler/build-python3x
...
return to using python 3.x for builds
2022-11-30 15:18:29 -05: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
Jeff Epler
e489b73d88
update esp-idf to merge commit
2022-11-30 12:04:47 -06:00
Hosted Weblate
440c32d3b2
Merge remote-tracking branch 'origin/main'
2022-11-30 17:18:52 +01: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