Exemplo n.º 1
0
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)
Exemplo n.º 2
0
async def login_now(*a):
    # wipe memory and reboot
    from callgate import show_logout
    from main import sf
    sf.wipe_most()
    show_logout(2)
Exemplo n.º 3
0
async def logout_now(*a):
    # wipe memory and lock up
    from callgate import show_logout
    from main import sf
    sf.wipe_most()
    show_logout()