Skip to content

Commit

Permalink
Save the set temp at reading
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Nov 23, 2015
1 parent a5fe2af commit 62279ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/therm_control.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def self.run
set_temp = SetTemp.first
temp = Temp.discover.values.first.f
r = Reading.new(temp_f: temp)
r.set_temp = set_temp.temp

if set_temp.cooling?
if temp < (set_temp.temp - SWING)
Expand Down

0 comments on commit 62279ca

Please sign in to comment.