diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 15:14:47 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 15:14:47 +0300 |
commit | 4ca4852eac209cc822252c5b17b1e8f2ce8b2c6c (patch) | |
tree | 0909802fc35f481d973df86aa0aafcab577984a9 /utils | |
parent | 2047f1f2abda04e86af1ba32826b872794106d18 (diff) |
kmstest: don't use "unknown" connectors by default
When using kmstest without parameters, use only connectors in Connected
state, not in Unknown state. To use Uknown state connectors, the
connector must be specified in the cmdline.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/kmstest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp index 1c2d086..06e00ba 100644 --- a/utils/kmstest.cpp +++ b/utils/kmstest.cpp @@ -637,9 +637,9 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman, } if (outputs.empty()) { - // no outputs defined, show a pattern on all screens + // no outputs defined, show a pattern on all connected screens for (Connector* conn : card.get_connectors()) { - if (!conn->connected()) + if (conn->connector_status() != ConnectorStatus::Connected) continue; OutputInfo output = { }; |