Enable CEC Active and HDMI connect events
dblume

dblume commited on 2023-02-15 21:22:18
Showing 2 changed files, with 6 additions and 2 deletions.

... ...
@@ -63,6 +63,10 @@ function executeTask() as void
63 63
     deviceInfo.SetMessagePort(port)
64 64
     input = CreateObject("roInput")
65 65
     input.SetMessagePort(port)
66
+    cecstatus = CreateObject("roCECStatus")
67
+    cecStatus.SetMessagePort(port)
68
+    hdmistatus = CreateObject("roHDMIStatus")
69
+    hdmistatus.SetMessagePort(port)
66 70
 
67 71
     success = deviceInfo.EnableLinkStatusEvent(true)
68 72
     if not success m.top.updateTextLower = "EnableLinkStatusEvent failure"
... ...
@@ -88,7 +92,7 @@ function executeTask() as void
88 92
         elseif msgType = "roCECStatusEvent"
89 93
             aa = msg.GetInfo()
90 94
             v = aa.LookupCI("Active")
91
-            if v <> invalid then m.top.updateTextLower = dt + " CEC Status " + v.toStr()
95
+            if v <> invalid then m.top.updateTextLower = dt + " CEC Active " + v.toStr()
92 96
         elseif msgType = "roDeviceInfoEvent"
93 97
             aa = msg.GetInfo()
94 98
             v = aa.LookupCI("Mute")
... ...
@@ -1,7 +1,7 @@
1 1
 title=dxb
2 2
 major_version=0
3 3
 minor_version=4
4
-build_version=1
4
+build_version=2
5 5
 ui_resolutions=fhd
6 6
 mm_icon_focus_hd=pkg:/images/mm_icon_focus_hd.png
7 7
 mm_icon_focus_sd=pkg:/images/mm_icon_focus_sd.png
8 8