commaai / panda

code powering the comma.ai panda
MIT License
1.54k stars 786 forks source link

Fix USB errors #2011

Closed dzid26 closed 2 months ago

dzid26 commented 2 months ago

Panda needed more time to be detected by USB host after reset.

USB errors would would show for the devices with USB hubs.

adeebshihadeh commented 2 months ago

A time.sleep is rarely the right fix. Why doesn't the polling below that line take care of this?

dzid26 commented 2 months ago

I got rid of the extra delay