Skip to content

Commit

Permalink
Update temperature_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Nov 8, 2024
1 parent 7c2fd0d commit 1c0803e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def get_tempdiff_inverted(current_offset: int, temp_diff: float, min_temp_diff: float, determine_tolerance: callable) -> int:
diff = temp_diff + 0.00001
min_diff_influence = min_temp_diff * 0.5
min_diff_influence = min_temp_diff * 0.5 if min_temp_diff < 0 else 0
combined_diff = diff + min_diff_influence

if abs(combined_diff) < 0.2:
Expand Down

0 comments on commit 1c0803e

Please sign in to comment.