cec: set to 'not present' on failed ack
[deb_libcec.git] / src / testclient / main.cpp
index 9d40c39dc1b7bc180659a81ce9086b77cb1b80ee..7837c12a6a970554a7b569a52e069a78065fd426 100644 (file)
@@ -609,7 +609,7 @@ bool ProcessCommandLAD(ICECAdapter *parser, const string &command, string &argum
   {
     cout << "listing active devices:" << endl;
     cec_logical_addresses addresses = parser->GetActiveDevices();
-    for (uint8_t iPtr = 0; iPtr < 16; iPtr++)
+    for (uint8_t iPtr = 0; iPtr <= 11; iPtr++)
       if (addresses[iPtr])
         cout << "logical address " << (int)iPtr << endl;
     return true;