diff --git a/shared/callgate.py b/shared/callgate.py index 17be21cc..bdd30758 100644 --- a/shared/callgate.py +++ b/shared/callgate.py @@ -93,24 +93,24 @@ def has_608b(): def fast_wipe(silent=True): # mk4: wipe seed, also reboots immediately: can stop and show a screen or not - ckcc.oneway(23, 0xBeef if silent else 0xdead); + ckcc.oneway(23, 0xBeef if silent else 0xdead) def fast_brick(): # mk4: brick and reboot. Near instant. Shows brick screen. - ckcc.oneway(24, 0xDead); + ckcc.oneway(24, 0xDead) def mcu_key_usage(): # mk4: avail/consumed/total stats, one will be in use typically from ustruct import unpack arg = bytearray(3*4) - ckcc.gate(25, arg, 0); + ckcc.gate(25, arg, 0) return unpack('3I', arg) def read_rng(source=2): # return random bytes from a secure source # - first byte is # of valid random bytes arg = bytearray(33) - rv = ckcc.gate(26, arg, source); + rv = ckcc.gate(26, arg, source) assert not rv return arg[1:1+arg[0]] @@ -118,7 +118,7 @@ def get_se_parts(): # mk4: report part names # - gets a nul-terminated string, w/ newline between them arg = bytearray(80) - rv = ckcc.gate(27, arg, 0); + rv = ckcc.gate(27, arg, 0) if rv: # happens w/ obsolete versions of bootrom that never left Toronto return ['SE1', 'SE2']