From 0f8ce41a8ede6734a26e19efd91aa936d4fb16b7 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Tue, 5 May 2020 19:37:02 +0200 Subject: [PATCH] Hide redundant options in CECP protocol Avoid conflicting configuration via options with respective protocol commands (cores, memory, variant). Closes #119. --- src/ucioption.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ucioption.cpp b/src/ucioption.cpp index e8d9124..0509cb2 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -161,7 +161,8 @@ std::ostream& operator<<(std::ostream& os, const OptionsMap& om) { { for (size_t idx = 0; idx < om.size(); ++idx) for (const auto& it : om) - if (it.second.idx == idx && it.first != "Protocol") + if (it.second.idx == idx && it.first != "Protocol" && it.first != "UCI_Variant" + && it.first != "Threads" && it.first != "Hash") { const Option& o = it.second; os << "\nfeature option=\"" << it.first << " -" << o.type; -- 1.7.0.4