mirror of https://github.com/commaai/panda.git
tres: lower SOM reset timeout (#1945)
* tres: lower SOM reset timeout * update test
This commit is contained in:
parent
3c4c1d95dc
commit
2b70e283c1
|
@ -29,7 +29,7 @@ void bootkick_tick(bool ignition, bool recent_heartbeat) {
|
|||
* once BOOT_RESET is triggered, it stays until countdown is finished
|
||||
*/
|
||||
if (!bootkick_reset_triggered && (boot_state == BOOT_BOOTKICK) && (boot_state_prev == BOOT_STANDBY)) {
|
||||
waiting_to_boot_countdown = 45U;
|
||||
waiting_to_boot_countdown = 20U;
|
||||
}
|
||||
if (waiting_to_boot_countdown > 0U) {
|
||||
bool serial_activity = uart_ring_som_debug.w_ptr_tx != bootkick_last_serial_ptr;
|
||||
|
|
|
@ -362,6 +362,7 @@ class Panda:
|
|||
this_serial = device.getSerialNumber()
|
||||
except Exception:
|
||||
logging.exception("failed to get serial number of panda")
|
||||
continue
|
||||
|
||||
if serial is None or this_serial == serial:
|
||||
logging.debug("opening device %s %s", this_serial, hex(device.getProductID()))
|
||||
|
|
|
@ -145,7 +145,7 @@ def test_recovery_from_qdl(p, pj):
|
|||
pj.set_header_pin(i, 0)
|
||||
|
||||
# normally, this GPIO is set immediately since it's first enabled in the ABL
|
||||
for i in range(40):
|
||||
for i in range(17):
|
||||
assert not p.read_som_gpio()
|
||||
time.sleep(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue