hwmontempsensor: Add support for ADM1021
Add support for ADM1021 I2C temperature sensors.
Tested: The temperature is visible in the webui.
Change-Id: Ic50822df39d2c3930e25b64a1d1bc8ec2234395f
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/src/HwmonTempMain.cpp b/src/HwmonTempMain.cpp
index bb2f6a4..8d41fab 100644
--- a/src/HwmonTempMain.cpp
+++ b/src/HwmonTempMain.cpp
@@ -52,6 +52,7 @@
namespace fs = std::filesystem;
static const I2CDeviceTypeMap sensorTypes{
+ {"ADM1021", I2CDeviceType{"adm1021", true}},
{"DPS310", I2CDeviceType{"dps310", false}},
{"EMC1412", I2CDeviceType{"emc1412", true}},
{"EMC1413", I2CDeviceType{"emc1413", true}},