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

Add sensor pair names to `State` returned by `PowerSensor.read()` #139

Closed loostrum closed 1 year ago

loostrum commented 1 year ago

So the user can access the sensor pair names by pairID if they want.

Also forces the same name for both sensors of the same pair by moving this functionality from psconfig to the PowerSensor library.

loostrum commented 1 year ago

Actually we already have functionality to get the pair name through PowerSensor.getPairName now, no need to add it to every State object.