Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hacksaar
Sphinx
Commits
0644bed1
Commit
0644bed1
authored
Dec 07, 2013
by
Ralf
Browse files
Wait a bit more before starting to complain
parent
77625890
Changes
1
Hide whitespace changes
Inline
Side-by-side
statemachine.py
View file @
0644bed1
...
...
@@ -39,7 +39,7 @@ FALLBACK_LEAVE_DELAY_LOCK = 5 # seconds
# StateAboutToOpen constants
SWITCH_PRAISE_PROBABILITY
=
0.5
ABOUTOPEN_NERVLIST
=
nervlist_abs2rel
([
(
5
,
lambda
:
play_sound
(
"flipswitch"
)),
(
10
,
lambda
:
play_sound
(
"flipswitch"
)),
\
ABOUTOPEN_NERVLIST
=
nervlist_abs2rel
([(
10
,
lambda
:
play_sound
(
"flipswitch"
)),
\
(
20
,
lambda
:
play_sound
(
"flipswitch"
)),
(
30
,
lambda
:
play_sound
(
"flipswitch"
)),
(
30
,
lambda
:
logger
.
error
(
"Space open but switch not flipped for 30 seconds"
)),
\
(
40
,
lambda
:
play_sound
(
"flipswitch"
)),
(
50
,
lambda
:
play_sound
(
"flipswitch"
)),
(
60
,
lambda
:
play_sound
(
"mail_sent"
)),
(
60
,
lambda
:
logger
.
critical
(
"Space open but switch not flipped for 60 seconds"
)),
(
120
,
lambda
:
play_sound
(
"mail_sent"
)),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment