(self)
| 88 | |
| 89 | # display the addresses controlled by libCEC |
| 90 | def ProcessCommandSelf(self): |
| 91 | addresses = self.lib.GetLogicalAddresses() |
| 92 | strOut = "Addresses controlled by libCEC: " |
| 93 | x = 0 |
| 94 | notFirst = False |
| 95 | while x < 15: |
| 96 | if addresses.IsSet(x): |
| 97 | if notFirst: |
| 98 | strOut += ", " |
| 99 | strOut += self.lib.LogicalAddressToString(x) |
| 100 | if self.lib.IsActiveSource(x): |
| 101 | strOut += " (*)" |
| 102 | notFirst = True |
| 103 | x += 1 |
| 104 | print(strOut) |
| 105 | |
| 106 | # send an active source message |
| 107 | def ProcessCommandActiveSource(self): |
no test coverage detected