diff options
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r-- | common/temp_sensor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c index 9b8fbe32fb..3b5a59c587 100644 --- a/common/temp_sensor.c +++ b/common/temp_sensor.c @@ -16,7 +16,6 @@ #include "peci.h" #include "task.h" #include "temp_sensor.h" -#include "thermal.h" #include "timer.h" #include "tmp006.h" #include "util.h" @@ -66,8 +65,8 @@ static void update_mapped_memory(void) } } } -/* Run after other tick tasks, so sensors will have updated first. */ -DECLARE_HOOK(HOOK_SECOND, update_mapped_memory, HOOK_PRIO_DEFAULT + 1); +/* Run after other TEMP tasks, so sensors will have updated first. */ +DECLARE_HOOK(HOOK_SECOND, update_mapped_memory, HOOK_PRIO_TEMP_SENSOR_DONE); static void temp_sensor_init(void) { |