pull/35324/head
Trey Moen 3 months ago
parent f8ac76be3c
commit 7245f63a21
  1. 5
      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 ""}:')

Loading…
Cancel
Save