mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 06:15:08 +00:00
6cbfdce0bca1c4f5b3abe65fc9a95fdde88a7e53
CURRENTLY: the code that sets plot line colors loops determines a default color for the all sensors, such that, AFAIK, a given sensor will always get the same plot color across different runs of the application (as long as the list of all detected sensors stays the same). This consistency is nice, but there's no duplicate handling so if the user is unlucky they can end up with duplicate colors in their plot even when the plot only contains 2 sensors. MY CHANGE: I added a second step that attempts to find a new color for sensors in the plot whose color is being used by another sensor. However, I tried to keep as much of the old consistency as I could, so the default color for each sensor is still calculated in the same way as before. That way if there aren't any duplicate colors, all sensors will keep the same color they had before the change, so I'm guessing most users won't even notice the change. That said, in certain circumstances this change can cause plot colors to jump around a bit as sensors get added/removed from the plot. For Example, if sensors A & B have the same default color and you add both to the plot, sensor B will get assigned a different color in order to prevent a duplicate color. However if you then remove sensor A from the plot, sensor B will suddenly revert to it's default color, which may seem to the user like mysterious action at a distance. Should be rare though.
Added a SensorName property to the SmartAttribute class in order to support sensor names that are different from the attribute name. Used the SensorName property to replace the "Temperature Difference From 100" sensor with a standard "Temperature" sensor. Closed issue #717.
Added a SensorName property to the SmartAttribute class in order to support sensor names that are different from the attribute name. Used the SensorName property to replace the "Temperature Difference From 100" sensor with a standard "Temperature" sensor. Closed issue #717.
Extracted the register and value port state and some methods from the LPCIO class into a new class LPCPort. Fixed issue #733 (unlocking the i/o space after sleep).
Description
No description provided
Languages
C#
95%
JavaScript
4.5%
HTML
0.3%
CSS
0.2%