def main(): try: _initialize_display() latest_update = _retrieve_latest_update() if _prompt_user_for_update(latest_update["name"], latest_update["build"]): uinterface.skippabletext("Starting update") system.ota() else: uinterface.skippabletext("Cancelled OTA update") except Exception as e: uinterface.skippabletext(str(e))
def start(pressed): if pressed: system.ota()
def opt_ota(self): system.ota(True)
def start_ota(): import system system.ota(True)
def splash_input_select(pressed): if pressed: if otac.available(False): system.ota() pm.feed()
import system system.ota(False)