From a4cab65f365619caaa34062aabf0c24657850a03 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 24 Dec 2025 11:27:05 +0100 Subject: [PATCH] Comments --- internal_filesystem/lib/mpos/battery_voltage.py | 4 ++-- scripts/install.sh | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/internal_filesystem/lib/mpos/battery_voltage.py b/internal_filesystem/lib/mpos/battery_voltage.py index 6e0c8d57..8308c355 100644 --- a/internal_filesystem/lib/mpos/battery_voltage.py +++ b/internal_filesystem/lib/mpos/battery_voltage.py @@ -10,9 +10,9 @@ adc_pin = None # Cache to reduce WiFi interruptions (ADC2 requires WiFi to be disabled) _cached_raw_adc = None _last_read_time = 0 -CACHE_DURATION_ADC2_MS = 300000 # 300 seconds (expensive: requires WiFi disable) CACHE_DURATION_ADC1_MS = 30000 # 30 seconds (cheaper: no WiFi interference) - +CACHE_DURATION_ADC2_MS = 300000 # 300 seconds (expensive: requires WiFi disable) +#CACHE_DURATION_ADC2_MS = CACHE_DURATION_ADC1_MS # trigger frequent disconnections for debugging OSUpdate resume def _is_adc2_pin(pin): """Check if pin is on ADC2 (ESP32-S3: GPIO11-20).""" diff --git a/scripts/install.sh b/scripts/install.sh index 9e4aa66b..d86f283e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -50,14 +50,6 @@ fi $mpremote fs cp -r lib :/ -$mpremote fs mkdir :/apps -$mpremote fs cp -r apps/com.micropythonos.* :/apps/ -find apps/ -maxdepth 1 -type l | while read symlink; do - echo "Handling symlink $symlink" - $mpremote fs mkdir :/"$symlink" - $mpremote fs cp -r "$symlink"/* :/"$symlink"/ - -done #echo "Unmounting builtin/ so that it can be customized..." # not sure this is necessary #$mpremote exec "import os ; os.umount('/builtin')" @@ -70,6 +62,15 @@ $mpremote fs mkdir :/data $mpremote fs mkdir :/data/com.micropythonos.system.wifiservice $mpremote fs cp ../internal_filesystem_excluded/data/com.micropythonos.system.wifiservice/config.json :/data/com.micropythonos.system.wifiservice/ +$mpremote fs mkdir :/apps +$mpremote fs cp -r apps/com.micropythonos.* :/apps/ +find apps/ -maxdepth 1 -type l | while read symlink; do + echo "Handling symlink $symlink" + $mpremote fs mkdir :/"$symlink" + $mpremote fs cp -r "$symlink"/* :/"$symlink"/ + +done + popd # Install test infrastructure (for running ondevice tests)