reckless edge X

This commit is contained in:
scgbckbone 2023-05-09 10:37:05 +02:00 committed by doc-hex
parent c126553147
commit 2749bc00fb
2 changed files with 11 additions and 1 deletions

View File

@ -918,6 +918,15 @@ async def start_login_sequence():
# is early in boot process
print("XFP save failed: %s" % exc)
# reckless warning before HSM is offered to also warn HSM users
_, ver, _ = version.get_mpy_version()
if ver[-1] == "X":
await ux_show_story(title="Reckless!!!",
msg=("Bleeding Edge Firmware\n\nThis preview version of firmware has not yet"
" been qualified and tested to the same standard as most Coinkite products."
"\n\nIt is recommended only for developers and early adopters for experimental use. "
"DO NOT use for large Bitcoin values."))
# If HSM policy file is available, offer to start that,
# **before** the USB is even enabled.
if version.has_fatram:

View File

@ -24,7 +24,8 @@ value = ((today.year - 1980) << 25) | (today.month << 21) | (today.day << 16)
# only 2second resolution for times, so can only support minor verion up to x.x.5 and hard to see
# anyway, let's omit ... worst case, use the date instead
h, m, _ = [int(x) for x in version.split('b')[0].split('.')]
ver = version.replace("X", "")
h, m, _ = [int(x) for x in ver.split('b')[0].split('.')]
value |= (h << 11) | (m << 5)
with open(out_fname, 'wt') as fd: