Jeff Epler
dd6dd5df21
rework the getenv test again
...
* use a virtual fat filesystem during the test
* this makes the file I/O part more closely patch runtime which is nice
* side-steps the need to add a special function for testing
* but test still can't be run on a device, because the vfs calls
are incompatible, and you intentionally can't remount "/" anyway
* and side-steps problems with storing 'bad' toml files
2022-12-10 12:58:08 -06:00
Jeff Epler
3ab71d7448
Rename test function, make 'bad' files binary & add another test
2022-12-09 15:23:56 -06:00
Jeff Epler
6dca9db225
Rename test function & fix a bug with default value handling
2022-12-09 14:35:50 -06:00
Jeff Epler
040fac0724
No need to track excess length
...
.. this is a relic from when the actual required length was given
back to the caller
2022-12-09 14:29:14 -06:00
Jeff Epler
cc7d550407
Really finish renaming to getenv
2022-12-09 14:28:46 -06:00
Jeff Epler
1f504e5c0f
Remove line accidentally duplicated
2022-12-09 14:15:00 -06:00
Jeff Epler
44f15d563d
Rename "environ" errors to "getenv" errors
2022-12-09 14:14:53 -06:00
Jeff Epler
678a466d1a
alphabetize
2022-12-09 14:12:43 -06:00
Jeff Epler
499af3ed00
update source locations in translation file
2022-12-09 14:11:57 -06:00
Jeff Epler
f2032dbf0f
remove mention of _environ
2022-12-09 14:11:37 -06:00
Jeff Epler
3a92c079fc
Finish renaming os_environ_get_key to os_getenv
...
.. for consistency.
2022-12-09 14:07:23 -06:00
Jeff Epler
529ec23ecb
sadly, no emoji in the docs :( hopefully this works
2022-12-08 20:07:48 -06:00
Jeff Epler
3cb628d290
fix nrf build
2022-12-08 16:45:58 -06:00
Jeff Epler
f30d3ba02e
update expected result
2022-12-08 15:39:19 -06:00
Jeff Epler
3459fe322b
Withdraw the _environ module
...
This existed solely for testing, so expose it a different way during
the unix coverage build
Also turn off os.getenv support on samd21.
2022-12-08 15:33:10 -06:00
Jeff Epler
243ecc2502
remove debugging prints
2022-12-08 14:18:22 -06:00
Jeff Epler
170918995c
fix mistaken code formatting
...
I wanted to use the idiom
```c
#if GUARD
if (condition) {
alternate code
} else
#else
{
common default code
}
```
idiom, in which the common default code is conditioned both on a
compile-time check and a run-time check. However, I got it wrong
and uncrustify chipped in, adding extra brackets around a following
piece of code and re-indenting it.
2022-12-08 14:16:53 -06:00
Jeff Epler
19ad1d5f53
update translations
2022-12-08 14:12:59 -06:00
Jeff Epler
a05829528b
_environ: update documentation
2022-12-08 13:36:48 -06:00
Jeff Epler
47339d4248
make a settings.toml file on boards that support the feature
2022-12-08 12:56:24 -06:00
Jeff Epler
1fe05cb8cd
pico w: re-use previous connection if ssid matches
2022-12-08 12:44:34 -06:00
Jeff Epler
ef2bfdb5db
dotenv becomes settings.toml
2022-12-08 12:44:20 -06:00
Dan Halbert
748cb92ff3
Merge pull request #7317 from s-ol/vfsfat-readonly-prop
...
Add VfsFat.readonly property for getting current state
2022-12-08 11:00:55 -05:00
s-ol
99b8564e8f
Add VfsFat.readonly property for getting current state
...
Previously the only other way of determining whether the Vfs has been mounted
read-write or read-only appears to be to attempt a write operation and detect a
possible OSError.
It wasn't possible for the user code to keep track of the state of the state
since the boot VM has to decide whether to (re)mount read-write or read-only,
but can't (easily) pass this information on to the runtime VM.
2022-12-08 14:45:24 +01:00
Dan Halbert
295f7b490f
Merge pull request #7313 from jepler/cyw43-additional-delay
...
Add an additional large delay time at start for pico w boards
2022-12-07 19:17:45 -05:00
Dan Halbert
44af05283a
Merge pull request #7291 from jepler/issue6502
...
Ensure orderly shutdown of ssl socket
2022-12-07 19:12:12 -05:00
Jeff Epler
2326b49b24
switch this header to 'pragma once' since I'm touching it already
2022-12-07 15:14:54 -06:00
Jeff Epler
a1dd8405f4
use a more standard method of forward-declaring the structure
2022-12-07 15:14:30 -06:00
Jeff Epler
ff8d051eff
Add an additional large delay time at start for pico w boards
2022-12-07 15:10:13 -06:00
Dan Halbert
676e40d62f
Merge pull request #7311 from dhalbert/esp32-box-lite-sdkconfig
...
make esp32-box-lite sdkconfig same as box
2022-12-06 21:31:45 -05:00
Dan Halbert
3965ef9c2a
make esp32-box-lite sdkconfig same as box
2022-12-06 19:27:00 -05:00
Dan Halbert
4418f268b9
Merge pull request #7309 from tannewt/fix_esp_socket_block
...
Three small ESP web workflow fixes
2022-12-06 17:12:45 -05:00
Scott Shawcroft
b354cec8cb
Three small ESP web workflow fixes
...
* Set nonblock on all accepted sockets. Not just ones for user code.
* Close an open websocket if another is accepted.
* Set debug level to INFO rather than DEBUG because DEBUG crashes
on ESP32-S3 USB OTG.
2022-12-06 11:49:04 -08:00
Dan Halbert
5cb867e854
Merge pull request #7307 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-12-05 22:18:08 -05:00
Boran Roni
1e34fc110a
Translated using Weblate (Turkish)
...
Currently translated at 26.7% (264 of 987 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/tr/
2022-12-05 22:48:20 +01:00
Wellington Terumi Uemura
d080f81ffe
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (987 of 987 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-12-05 22:48:19 +01:00
Scott Shawcroft
ac239c0fb3
Merge pull request #7306 from evildave666/add-luatos-core-esp32c3
...
Add Luatos Core ESP32C3 Board
2022-12-05 13:27:08 -08:00
Scott Shawcroft
d7874e65c2
Merge pull request #7299 from BooleanMattock/main
...
Fix to Issue #7224 - Servo update slow due to PWM channel duty cycle update busy-wait
2022-12-05 12:54:41 -08:00
Dan Halbert
d7d5a96da9
Merge pull request #7292 from jepler/fix-error-message
...
fix display of the 'host not found' message
2022-12-05 11:07:11 -05:00
Dan Halbert
e871deb5ce
Merge pull request #7302 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-12-05 11:06:25 -05:00
evildave666
eaf39b4c10
Update pins.c
2022-12-05 16:40:36 +09:00
evildave666
14b430ed35
Fix pre-commit issues
2022-12-05 16:35:48 +09:00
evildave666
5b6f06d84c
Add additional files
2022-12-05 16:08:12 +09:00
evildave666
05a8bf8c38
Create board.c
2022-12-05 16:06:50 +09:00
Jonny Bergdahl
51df14896b
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (987 of 987 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-04 18:47:22 +01:00
MicroDev
a50b0a2a56
Merge pull request #7298 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-12-03 11:12:00 +05:30
BooleanMattock
afb5301cef
Fix to Issue #7224 - tested
2022-12-02 20:21:40 -05:00
Hosted Weblate
248c17d8bf
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-02 23:53:24 +01:00
Hosted Weblate
c9edac7532
Merge remote-tracking branch 'origin/main'
2022-12-02 23:53:21 +01:00
Jonny Bergdahl
54831ae692
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (986 of 986 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-02 23:53:21 +01:00