Commit 1de7ca38 authored by Kristian Tan's avatar Kristian Tan

convert secodns to int

parent db48d17b
......@@ -76,7 +76,7 @@ def toggle_pin(change_pin):
start_time = pins[change_pin]['on_time']
# Get the elapsed time and strip away milliseconds
elapsed = (datetime.now() - start_time).total_seconds()
elapsed = int((datetime.now() - start_time).total_seconds())
print("SECS")
print(elapsed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment