sensord: tighten temperature threshold (#36994)

* sensord: tighten temperature threshold

* lil more
This commit is contained in:
Adeeb Shihadeh
2026-01-13 14:33:13 -08:00
committed by GitHub
parent 15d3a166f7
commit 1252188b4b
+2 -8
View File
@@ -32,23 +32,17 @@ SENSOR_CONFIGURATIONS: list[set] = {
Sensor = log.SensorEventData.SensorSource
SensorConfig = namedtuple('SensorConfig', ['type', 'sanity_min', 'sanity_max'])
ALL_SENSORS = {
Sensor.lsm6ds3: {
SensorConfig("acceleration", 5, 15),
SensorConfig("gyroUncalibrated", 0, .2),
SensorConfig("temperature", 0, 60),
},
Sensor.lsm6ds3trc: {
SensorConfig("acceleration", 5, 15),
SensorConfig("gyroUncalibrated", 0, .2),
SensorConfig("temperature", 0, 60),
SensorConfig("temperature", 10, 40), # set for max range of our office
},
Sensor.mmc5603nj: {
SensorConfig("magneticUncalibrated", 0, 300),
}
}
ALL_SENSORS[Sensor.lsm6ds3] = ALL_SENSORS[Sensor.lsm6ds3trc]
def get_irq_count(irq: int):
with open(f"/sys/kernel/irq/{irq}/per_cpu_count") as f: