Skip to content

Commit

Permalink
Changing behavior to pump on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Jun 20, 2017
1 parent b667c9c commit 9868c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greenpithumb/greenpithumb.py
Expand Up @@ -150,8 +150,8 @@ def make_pump_manager(moisture_threshold, sleep_windows, raspberry_pi_io,
(last_pump_time + pump_interval) - clock.Clock().now())
else:
logger.info('no previous watering found')
time_remaining = pump_interval
logger.info('max time until until next watering: %s', time_remaining)
time_remaining = datetime.timedelta(seconds=0)
logger.info('time until until next watering: %s', time_remaining)
pump_timer.set_remaining(time_remaining)
return pump.PumpManager(water_pump, pump_scheduler, moisture_threshold,
pump_amount, pump_timer)
Expand Down

0 comments on commit 9868c06

Please sign in to comment.