preferences
This commit is contained in:
parent
8cb32c6458
commit
33c578e90a
@ -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.
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user