From 5280071b336d53aff94ca3a6c70ebbe6bf03f4c3 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Wed, 30 Aug 2017 16:27:14 +0100 Subject: COMPMID-415: Accept uppercase commandline values Change-Id: I25ae8b3ca427719aff334799ecab50a1e21fdd56 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85816 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- framework/instruments/Instruments.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/instruments') diff --git a/framework/instruments/Instruments.cpp b/framework/instruments/Instruments.cpp index 7a26944d26..12ad86c70a 100644 --- a/framework/instruments/Instruments.cpp +++ b/framework/instruments/Instruments.cpp @@ -23,6 +23,8 @@ */ #include "Instruments.h" +#include "framework/Utils.h" + #include #include @@ -45,7 +47,7 @@ InstrumentType instrument_type_from_name(const std::string &name) try { - return types.at(name); + return types.at(tolower(name)); } catch(const std::out_of_range &) { -- cgit v1.2.1