File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
internal_filesystem/lib/mpos Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1010# Cache to reduce WiFi interruptions (ADC2 requires WiFi to be disabled)
1111_cached_raw_adc = None
1212_last_read_time = 0
13- CACHE_DURATION_ADC2_MS = 300000 # 300 seconds (expensive: requires WiFi disable)
1413CACHE_DURATION_ADC1_MS = 30000 # 30 seconds (cheaper: no WiFi interference)
15-
14+ CACHE_DURATION_ADC2_MS = 300000 # 300 seconds (expensive: requires WiFi disable)
15+ #CACHE_DURATION_ADC2_MS = CACHE_DURATION_ADC1_MS # trigger frequent disconnections for debugging OSUpdate resume
1616
1717def _is_adc2_pin (pin ):
1818 """Check if pin is on ADC2 (ESP32-S3: GPIO11-20)."""
Original file line number Diff line number Diff line change 5050
5151$mpremote fs cp -r lib :/
5252
53- $mpremote fs mkdir :/apps
54- $mpremote fs cp -r apps/com.micropythonos.* :/apps/
55- find apps/ -maxdepth 1 -type l | while read symlink; do
56- echo " Handling symlink $symlink "
57- $mpremote fs mkdir :/" $symlink "
58- $mpremote fs cp -r " $symlink " /* :/" $symlink " /
59-
60- done
6153
6254# echo "Unmounting builtin/ so that it can be customized..." # not sure this is necessary
6355# $mpremote exec "import os ; os.umount('/builtin')"
@@ -70,6 +62,15 @@ $mpremote fs mkdir :/data
7062$mpremote fs mkdir :/data/com.micropythonos.system.wifiservice
7163$mpremote fs cp ../internal_filesystem_excluded/data/com.micropythonos.system.wifiservice/config.json :/data/com.micropythonos.system.wifiservice/
7264
65+ $mpremote fs mkdir :/apps
66+ $mpremote fs cp -r apps/com.micropythonos.* :/apps/
67+ find apps/ -maxdepth 1 -type l | while read symlink; do
68+ echo " Handling symlink $symlink "
69+ $mpremote fs mkdir :/" $symlink "
70+ $mpremote fs cp -r " $symlink " /* :/" $symlink " /
71+
72+ done
73+
7374popd
7475
7576# Install test infrastructure (for running ondevice tests)
You can’t perform that action at this time.
0 commit comments