Skip to content

Commit 215315d

Browse files
committed
Show firmware version and returntostatustime
1 parent 30316ee commit 215315d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

bin/decimctl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def status(args):
2626
print("Model: %s Serial: %s" % (d.desc, d.serial))
2727
print("Device type: %s" % (d.device_type))
2828
reg = d.registers
29+
print("Firmware version: %d.%d" % (reg.version_major, reg.version_minor))
2930
if hasattr(reg, "Input1Status"):
3031
print("Input 1 status: %s" % reg.Input1Status)
3132
if hasattr(reg, "Input2Status"):

decimctl/protocol.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ class DUC_Ref(enum.IntEnum):
194194
SDI_IN = 2
195195
HDMI_IN = 3
196196

197-
class LCDOffTime(enum.IntEnum):
198-
OFF_5s = 0
199-
OFF_15s = 1
200-
OFF_30s = 2
201-
OFF_1m = 3
202-
OFF_5m = 4
203-
OFF_10m = 5
204-
OFF_30m = 6
197+
class Time(enum.IntEnum):
198+
T_5s = 0
199+
T_15s = 1
200+
T_30s = 2
201+
T_1m = 3
202+
T_5m = 4
203+
T_10m = 5
204+
T_30m = 6
205205
NEVER = 7
206206

207207
class AudioPair(enum.IntEnum):
@@ -400,7 +400,8 @@ class CPA_Registers(Registers):
400400
"HO_Source": HO_Source,
401401
"DUC_Ref": DUC_Ref,
402402
"DUC_Source": DUC_Source,
403-
"LCDOffTime": LCDOffTime,
403+
"LCDOffTime": Time,
404+
"ReturnToStatusTime": Time,
404405
"HDMI_Pair1": AudioPair,
405406
"HDMI_Pair2": AudioPair,
406407
"HDMI_Pair3": AudioPair,

0 commit comments

Comments
 (0)