Browse Source

handle the case where we might not be getting data for a while

main
John-Mark Gurney 5 years ago
parent
commit
f3f298bbe6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      enphase.py

+ 3
- 0
enphase.py View File

@@ -91,6 +91,9 @@ def thread_production():
e = time.time()
if s > e:
time.sleep(s - time.time())
else:
# catch up s to e:
s += ((e - s) // 10) * 10

def thread_inventory():
global doexit


Loading…
Cancel
Save