remove Lamp Test
This commit is contained in:
parent
93b7bcbf2b
commit
5fa1b2ade9
@ -14,6 +14,7 @@ This lists the new changes that have not yet been published in a normal release.
|
||||
- Bugfix: Properly handle null data in `OP_RETURN`.
|
||||
- Bugfix: Prevent user from restoring Seed XOR when len parts is smaller than 2.
|
||||
- Bugfix: Fix display alignment of Seed Vault menu.
|
||||
- Change: Remove Lamp Test from Debug Options (lights covered by selftest)
|
||||
|
||||
# Mk4 Specific Changes
|
||||
|
||||
|
||||
@ -2214,23 +2214,12 @@ async def microsd_2fa(*a):
|
||||
|
||||
return MicroSD2FA.menu()
|
||||
|
||||
async def lamp_test(*a):
|
||||
# turn on all the lights
|
||||
from machine import Pin
|
||||
lamps = ['SD_ACTIVE', 'USB_ACTIVE', 'NFC_ACTIVE']
|
||||
if version.num_sd_slots == 2:
|
||||
lamps.append('SD_ACTIVE2')
|
||||
|
||||
lamps = [Pin(n, Pin.OUT, value=1) for n in lamps]
|
||||
await ux_show_story('''All lights should be on, except yellow.''')
|
||||
[i(0) for i in lamps]
|
||||
|
||||
async def keyboard_test(*a):
|
||||
# to aid keyboard testing/dev
|
||||
from ux import ux_input_text
|
||||
await ux_input_text('', max_len=128, scan_ok=True, confirm_exit=False,
|
||||
prompt='Keyboard Test', placeholder='(type whatever)')
|
||||
|
||||
|
||||
#
|
||||
# Q wrappers; these will be present, but are very short on mk4
|
||||
|
||||
@ -256,7 +256,6 @@ AdvancedPinnedVirginMenu = [ # Has PIN but no secrets yet
|
||||
|
||||
DebugFunctionsMenu = [
|
||||
# xxxxxxxxxxxxxxxx
|
||||
MenuItem("Lamp Test", f=lamp_test),
|
||||
MenuItem("Keyboard Test", f=keyboard_test),
|
||||
MenuItem('BBQr Demo', f=debug_bbqr_test, predicate=version.has_qwerty),
|
||||
MenuItem('Debug: assert', f=debug_assert),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user