Jeff Epler
8e947f456a
Merge pull request #7592 from gneverov/lwip_threadsafe
...
Add LWIP thread safety sections
2023-05-02 07:19:26 -05:00
Dan Halbert
6a4830b0cf
Merge pull request #7810 from jepler/read-error-getenv
...
getenv: treat a read error like eof
2023-03-29 13:04:43 -04:00
Jeff Epler
a8bbb21eeb
Use short-circuiting or (also may save some code size)
...
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2023-03-29 10:09:01 -05:00
Jeff Epler
cc3d0f6fa1
getenv: treat a read error like eof
...
Otherwise, the following would occur:
* settings.toml is in the process of being written by host computer
* soft-reset begins
* web workflow tries to grab CIRCUITPY_WIFI_SSID, but loops forever
because FAT filesystem is in inconsistent state and file reads error
* settings.toml write by host computer never completes and the filesystem
remains corrupt
* restarting yields a soft-bricked device, because startup reads
CIRCUITPY_WIFI_SSID again
2023-03-29 10:04:06 -05:00
Scott Shawcroft
4517071e6f
Merge pull request #7728 from dhalbert/build_board_info-backport-8.0.x
...
8.0.x of build_board_info.py fix for large files.json
2023-03-16 10:45:28 -07:00
Dan Halbert
60e7df1b0e
update build_board_info.py per Neradoc
2023-03-15 11:31:36 -04:00
Scott Shawcroft
58901e52b5
Merge pull request #7699 from dhalbert/8.0.x-7694-backport
...
8.0.x backport: Fix for issue #7054 by avoiding recursive calls to websocket_background.
2023-03-09 10:01:33 -08:00
root
a2cb953eac
Fix for issue #7054 by avoiding recursive calls to websocket_background.
2023-03-09 11:07:36 -05:00
Dan Halbert
bd889926e5
Merge pull request #7679 from dhalbert/socket-fix
...
be more careful when setting socket to non-blocking
2023-03-04 16:07:02 -05:00
Dan Halbert
08c9eb9f00
be more careful when setting socket to non-blocking
2023-03-04 14:40:06 -05:00
Dan Halbert
bdb9816317
Merge pull request #7654 from dhalbert/8.0.x-7652
...
8.0.x Backport of #7652 ("soft reboot" printing); update frozen libraries
2023-02-27 22:52:30 -05:00
Dan Halbert
9b2f1abeab
update frozen libraries and get smaller RFM69 library
2023-02-27 20:56:14 -05:00
Dan Halbert
8f3e20ff96
Merge pull request #7652 from xorbit/fix_soft_reboot_marker
...
Fix print of "soft reboot" when the user presses ^D
2023-02-26 23:27:23 -05:00
Dan Halbert
460dda0426
Merge pull request #7616 from dhalbert/8.0.x-fix-atmel-uart
...
Fix pad assignments on atmel-samd UART
2023-02-22 17:24:29 -05:00
Dan Halbert
9b6abea907
Merge pull request #7632 from jepler/fix-picow-ssl-error-returns
...
raspberrypi: SSLSocket: raise OSError when appropriate
2023-02-22 11:38:59 -05:00
Jeff Epler
de9233f84a
raspberrypi: SSLSocket: raise OSError when appropriate
...
Rather than returning the negative error value.
This is intended to close #7606 , though I did not test with mqtt.
Instead, I created a simple standalone test program:
```python
import wifi, socketpool, ssl, time
#wifi.radio.connect(<omitted>)
import socketpool
socket = socketpool.SocketPool(wifi.radio)
ctx = ssl.create_default_context()
b = bytearray(8)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sss = ctx.wrap_socket(s, server_hostname='example.com')
sss.connect(('example.com', 443))
sss.setblocking(False)
r = sss.recv_into(b)
print(r, b) # prints 4294967285 which is -11 as unsigned
sss.close()
```
Before the change, r was the out of range value 4294967285. After the
change, the recv_into call raises OSError instead.
This is comparable to the behavior on standard Python, though an
SSLWantReadError is raised instead.
The original (mis)behavior seems to match what was uncovered deep inside
minimqtt by adding logging:
```
370.578: DEBUG - PKT: _sock_exact_recv: recv_len = 4294967285
```
2023-02-22 10:07:48 -06:00
Dan Halbert
2684aeb838
don't check for RX and TX both none in ports: now checked in shared-bindings
2023-02-20 19:11:16 -05:00
Dan Halbert
6d51356324
Fix pad assignments on atmel-samd UART
2023-02-19 20:42:44 -05:00
Dan Halbert
3f66a0be83
Merge pull request #7611 from gamblor21/colorconverter-mem-fix
...
ColorConverter output colorspace non-initialization fix
2023-02-19 20:34:30 -05:00
gamblor21
e78875a93b
ColorConverter output colorspace fix
2023-02-18 15:35:56 -06:00
Scott Shawcroft
c7f485d7d6
Merge pull request #7601 from jepler/fix-duplicate-ulab-help
...
Fix duplicate ulab help
2023-02-17 09:18:09 -08:00
Jeff Epler
d249af2a24
don't explicitly register ulab here
...
.. it is registered by MP_REGISTER_MODULE in ulab.
Closes : #7600
2023-02-17 09:21:50 -06:00
Scott Shawcroft
e487b7cc75
Merge pull request #7589 from gneverov/issue_7333
...
Increase number of LWIP timers for MDNS (fixes #7333 )
2023-02-15 19:51:26 -08:00
Gregory Neverov
12f5518ad6
Add LWIP thread safety sections
2023-02-15 17:58:56 -08:00
Gregory Neverov
fd1c3ca784
Increase number of LWIP timers for MDNS
2023-02-15 16:40:45 -08:00
Scott Shawcroft
1af2b6acbe
Merge pull request #7563 from Neradoc/deinit-i2cdisplay-reset-on-raise
...
Deinit the reset pin when displayio.I2CDisplay fails
2023-02-13 10:03:39 -08:00
Dan Halbert
ec90d79d61
Merge pull request #7553 from kamtom480/sdk2.6.0
...
spresense: update SDK to 2.6.0
2023-02-13 09:04:35 -05:00
Neradoc
3c93594563
Deinit the reset pin when displayio.I2CDisplay raises an exception
2023-02-10 19:54:10 +01:00
Dan Halbert
7071478992
Merge pull request #7566 from jepler/chain-exception-fix
...
Fix several places where an exception could be chained wrongly
2023-02-10 13:47:50 -05:00
Neradoc
cec36b62f1
Update build_board_info.py to sh module 2.0.0
2023-02-10 09:20:46 -06:00
Jeff Epler
0d957fe15c
Fix several places where an exception could be chained wrongly
...
If an exception's chain or context can refer to a pointer from a different
VM, a crash would typically result.
This couldn't turn up on UNIX testing because the VM is never torn
down and rebuilt like it is on hardware.
Because in the 'static' case the GeneratorObject is now fully initialized
whenever it's raised, the initialization can be dropped, which reduces
the flash size slightly.
Closes : #7565
2023-02-10 09:06:47 -06:00
Dan Halbert
fc919d24e1
Merge pull request #7558 from jepler/issue7206
...
Use lowest drive level for PIO
2023-02-08 19:23:11 -05:00
Jeff Epler
b9f689adf4
Use lowest drive level for PIO
2023-02-08 16:18:58 -06:00
Mark
5f43a63a70
Merge pull request #7546 from FoamyGuy/is31fl3741_fix
...
fix for native is31fl3741
2023-02-03 18:09:51 -06:00
foamyguy
fab1bb5f21
fix for native is31fl3741
2023-02-03 17:43:12 -06:00
Dan Halbert
3a82730eb7
Merge pull request #7542 from dhalbert/metro-m7-flash-64
...
update flash chip for Metro M7 1011
2023-02-03 12:24:58 -05:00
Dan Halbert
f13e6d8758
update flash chip for Metro M7 1011
2023-02-03 11:56:42 -05:00
Dan Halbert
6b64cb991a
Merge pull request #7541 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2023-02-03 09:52:34 -05:00
Wellington Terumi Uemura
8ca22a8a41
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (995 of 995 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2023-02-03 05:15:46 +01:00
Dan Halbert
aafec496c3
Merge pull request #7539 from DavePutz/issue_7419
...
Correct assignment of RMT channels on ESP32C3
2023-02-02 17:35:37 -05:00
root
750535d4af
Correct assignment of RMT channels on ESP32C3
2023-02-02 14:55:57 -06:00
Dan Halbert
e207db7cd9
Merge pull request #7536 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2023-02-01 20:24:11 -05:00
Hosted Weblate
9a61553645
Merge remote-tracking branch 'origin/main'
2023-02-02 02:22:52 +01:00
Dan Halbert
9e242bfd4f
Merge pull request #7538 from gneverov/issue_6482
...
Fixes #6482
2023-02-01 20:21:17 -05:00
Gregory Neverov
77c6daf4b8
don't throw exception
2023-02-01 16:33:22 -08:00
Jose David M
8529ec2649
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (995 of 995 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2023-02-01 23:11:16 +01:00
Hosted Weblate
764d731e24
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-02-01 22:25:19 +01:00
Dan Halbert
92f39fd708
Merge pull request #7533 from jepler/update-ulab-607
...
update ulab to 6.0.7
2023-02-01 16:24:56 -05:00
Dan Halbert
c9e45433ff
make translate
2023-02-01 14:03:52 -05:00
Jeff Epler
79e07bfe00
update ulab to 6.0.7
2023-02-01 09:08:18 -06:00