fix for end of run

This commit is contained in:
Sebastian Steuer 2013-11-29 23:46:21 +01:00
parent c9f33fa079
commit 0fd66725ce

View File

@ -174,7 +174,10 @@ class Profile():
def is_rising(self,time):
(prev_point,next_point) = self.get_surrounding_points(time)
return prev_point[1] < next_point[1]
if prev_point and next_point:
return prev_point[1] < next_point[1]
else:
return False
def get_target_temperature(self,time):
if time > self.get_duration():