preferences

This commit is contained in:
Peter D. Gray 2024-02-01 08:18:56 -05:00
parent 8cb32c6458
commit 33c578e90a
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ wallet (on testnet, always with the same seed). But there are other options:
- `--seq 2ENTER` => (Q) press 2 then ENTER, does QR at startup
- `--bootup-movie` => begin a movie on startup, to capture boot sequence
- `--scan` => (Q) use attached serial port connected to a QR scanner module (not simulation)
- `--plugged` => (Q) assume the USB cable is connected (not on battery power)
- `--battery` => (Q) assume the USB cable is NOT connected (ie. on battery power)
See `variant/sim_settings.py` for the details of settings-related options.

View File

@ -4,7 +4,7 @@
#
import battery, sys
fake_voltage = 0 if ('--plugged' in sys.argv) else 4.0
fake_voltage = 4.0 if ('--battery' in sys.argv) else 0
def mock_get_batt_level():
return fake_voltage if fake_voltage != 0 else None