projects
/
~helmut
/
onoff.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial commit
[~helmut/onoff.git]
/
onoff
/
common.py
1
"""
2
Defined states:
3
* 0: The device is inactive.
4
* ST_TRANSITION: The device is transitioning from inactive to active.
5
* ST_ACTIVE: The device is active.
6
* ST_ACTIVE|ST_TRANSITION: The device is transitioning from active to inactive.
7
"""
8
9
ST_ACTIVE = 1
10
ST_TRANSITION = 2