nlesc-recruit / PowerSensor3

PowerSensor is a low-cost, custom-built device that measures the instantaneous power consumption of GPUs and other devices at a high time resolution.
https://nlesc-recruit.github.io/PowerSensor3/
Apache License 2.0
8 stars 0 forks source link

Avoid hang on application crash #155

Closed loostrum closed 8 months ago

loostrum commented 9 months ago

The firmware uses a few infinite loops to wait for specific communication from the host. If communication with the host is interrupted, this may leave the microcontroller in an undefined state where it won't respond to the host anymore.

Solution: add a timeout to make the uC reset itself (or recover more elegantly where possible).