Skip to content

Commit

Permalink
Add missing sleep timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
brickbots committed Aug 20, 2024
1 parent cc15b2f commit 03f73b8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions python/PiFinder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,14 @@ def get_sleep_timeout(cfg):
returns the sleep timeout amount
"""
sleep_timeout_option = cfg.get_option("sleep_timeout")
sleep_timeout = {"Off": 100000, "10s": 10, "20s": 20, "30s": 30, "1m": 60}[
sleep_timeout_option
]
sleep_timeout = {
"Off": 100000,
"10s": 10,
"20s": 20,
"30s": 30,
"1m": 60,
"2m": 120,
}[sleep_timeout_option]
return sleep_timeout


Expand Down

0 comments on commit 03f73b8

Please sign in to comment.