From 1252188b4b8e4228af29ed12639d4183186ef9c7 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 13 Jan 2026 14:33:13 -0800 Subject: [PATCH] sensord: tighten temperature threshold (#36994) * sensord: tighten temperature threshold * lil more --- system/sensord/tests/test_sensord.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/system/sensord/tests/test_sensord.py b/system/sensord/tests/test_sensord.py index 5e98e1224..20214e12f 100644 --- a/system/sensord/tests/test_sensord.py +++ b/system/sensord/tests/test_sensord.py @@ -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: