repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: only log new power status when it actually changed
[deb_libcec.git]
/
src
/
lib
/
LibCECC.cpp
diff --git
a/src/lib/LibCECC.cpp
b/src/lib/LibCECC.cpp
index ad663b7623fcf104e528f0fa5bab7c5b3a054c74..28a268b3879532f263c55095da3f3efae6553b18 100644
(file)
--- a/
src/lib/LibCECC.cpp
+++ b/
src/lib/LibCECC.cpp
@@
-208,4
+208,11
@@
uint64_t cec_get_device_vendor_id(cec_logical_address iLogicalAddress)
return 0;
}
return 0;
}
+cec_power_status cec_get_device_power_status(cec_logical_address iLogicalAddress)
+{
+ if (cec_parser)
+ return cec_parser->GetDevicePowerStatus(iLogicalAddress);
+ return CEC_POWER_STATUS_UNKNOWN;
+}
+
//@}
//@}