diff --git a/oresat_cfc/services/tec_controller.py b/oresat_cfc/services/tec_controller.py index eda43a5..cb31c16 100644 --- a/oresat_cfc/services/tec_controller.py +++ b/oresat_cfc/services/tec_controller.py @@ -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} / "