mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
Couple more constants faced
This commit is contained in:
parent
af05877fde
commit
ab9e829d97
@ -88,7 +88,8 @@ DEVICE_TYPES = {
|
|||||||
STATUS_STARTED = 0x01
|
STATUS_STARTED = 0x01
|
||||||
STATUS_CONFLICT = 0x05
|
STATUS_CONFLICT = 0x05
|
||||||
STATUS_FINISHED = 0x0a
|
STATUS_FINISHED = 0x0a
|
||||||
STATUS_SOMEPROBLEM = 0x0c
|
STATUS_INPROGRESS = 0x0c # FIXME: not sure about description
|
||||||
|
STATUS_INTERRUPTED = 0x0e # FIXME: not sure about description
|
||||||
|
|
||||||
# COLORS
|
# COLORS
|
||||||
COLOR_BLACK = 0x00
|
COLOR_BLACK = 0x00
|
||||||
|
@ -144,8 +144,11 @@ class MoveHub(object):
|
|||||||
elif status == STATUS_CONFLICT:
|
elif status == STATUS_CONFLICT:
|
||||||
log.warning("Command conflict on port %s", PORTS[port])
|
log.warning("Command conflict on port %s", PORTS[port])
|
||||||
self.devices[port].finished()
|
self.devices[port].finished()
|
||||||
elif status == STATUS_SOMEPROBLEM:
|
elif status == STATUS_INPROGRESS:
|
||||||
log.warning("Command problem on port %s", PORTS[port])
|
log.warning("Another command is in progress on port %s", PORTS[port])
|
||||||
|
self.devices[port].finished()
|
||||||
|
elif status == STATUS_INTERRUPTED:
|
||||||
|
log.warning("Command interrupted on port %s", PORTS[port])
|
||||||
self.devices[port].finished()
|
self.devices[port].finished()
|
||||||
else:
|
else:
|
||||||
log.warning("Unhandled status value: 0x%x on port %s", status, PORTS[port])
|
log.warning("Unhandled status value: 0x%x on port %s", status, PORTS[port])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user