def test_wifi_flash_st(serial=None):
    connect_wifi(serial)
    assert Panda.flash_ota_st(), "OTA ST Flash Failed"
    connected = False
    st = time.time()
    while not connected and (time.time() - st) < 20:
        try:
            p = Panda(serial=serial)
            p.get_serial()
            connected = True
        except:
            time.sleep(1)

    if not connected:
        assert False, "Panda failed to connect on USB after flashing"
Example #2
0
def test_wifi_flash_st():
  Panda.flash_ota_st()
Example #3
0
def test_wifi_flash_st():
    Panda.flash_ota_st()