Skip to content

Commit

Permalink
Update thermal_mgr.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Dibadi1384 authored Oct 16, 2024
1 parent 534fc4f commit db88abb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/thermal_mgr/thermal_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ static void thermalMgr(void *pvParameters) {
// Check for read temperature error, skip if temp not read
if (errCode != ERR_CODE_SUCCESS) {
continue;
}

// Send the measured temperature as telemetry
addTemperatureTelemetry(temperature);
}

// Check temperature against thresholds
if (temperature > LM75BD_DEFAULT_OT_THRESH) {
Expand All @@ -123,6 +120,9 @@ static void thermalMgr(void *pvParameters) {
// Safe operating conditions restored
safeOperatingConditions();
}

// Send the measured temperature as telemetry
addTemperatureTelemetry(temperature);
}

else{
Expand Down

0 comments on commit db88abb

Please sign in to comment.