From 7245f63a21e01c6f24cc7faf016a051efd73d558 Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Fri, 30 May 2025 11:19:35 -0700 Subject: [PATCH] simpler --- system/hardware/esim.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/hardware/esim.py b/system/hardware/esim.py index 8cbd486d18..58ead6593f 100755 --- a/system/hardware/esim.py +++ b/system/hardware/esim.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import argparse -import subprocess import time from openpilot.system.hardware import HARDWARE @@ -37,8 +36,8 @@ if __name__ == '__main__': if mutated: HARDWARE.reboot_modem() - while subprocess.run(['mmcli', '-i', 'any']).returncode != 0: - time.sleep(.1) + # eUICC needs a small delay post-reboot before querying profiles + time.sleep(.5) profiles = lpa.list_profiles() print(f'\n{len(profiles)} profile{"s" if len(profiles) > 1 else ""}:')