def clean_shutdown(style=0): # wipe SPI flash and shutdown (wiping main memory) import callgate try: from main import sf sf.wipe_most() except: pass callgate.show_logout(style)
async def login_now(*a): # wipe memory and reboot from callgate import show_logout from main import sf sf.wipe_most() show_logout(2)
async def logout_now(*a): # wipe memory and lock up from callgate import show_logout from main import sf sf.wipe_most() show_logout()