Skip to content

Commit

Permalink
use min for keeping track of lowest temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Feb 25, 2024
1 parent d5d16c7 commit f1b3998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oresat_cfc/services/tec_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ def on_loop(self):
self._update_graph_data(current_temp, diff, mv_avg)

# update the lowest temperature
if current_temp < self._lowest_temp:
self._lowest_temp = current_temp
self._lowest_temp = min(self._lowest_temp, current_temp)

logger.debug(
f"target: {self._pid.setpoint} / current: {current_temp} / "
Expand Down

0 comments on commit f1b3998

Please sign in to comment.