diff --git a/shared/actions.py b/shared/actions.py index c1bbf2e0..2f4145a6 100644 --- a/shared/actions.py +++ b/shared/actions.py @@ -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: diff --git a/stm32/make_filetime.py b/stm32/make_filetime.py index 60051a6e..0eac938c 100755 --- a/stm32/make_filetime.py +++ b/stm32/make_filetime.py @@ -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: