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 microcontroller getting stuck in an infinite loop #157

Closed loostrum closed 8 months ago

loostrum commented 8 months ago

This can happen if the host stops sending data due to e.g. a crash.

The loops waiting for data from the host now have a timeout (default 2s), after which the device is reset if nothing is received.