Skip to content

Commit a4cab65

Browse files
Comments
1 parent d064636 commit a4cab65

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

internal_filesystem/lib/mpos/battery_voltage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
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)
1413
CACHE_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

1717
def _is_adc2_pin(pin):
1818
"""Check if pin is on ADC2 (ESP32-S3: GPIO11-20)."""

scripts/install.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ fi
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+
7374
popd
7475

7576
# Install test infrastructure (for running ondevice tests)

0 commit comments

Comments
 (0)