From 17affb8085b408d7b135adfe4972a7057e12d7fd Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 1 May 2014 19:44:23 +0200 Subject: hwstub: fix hwstub_shell Change-Id: I008a55675054c86fd206cc5248f2bd9475e80b49 --- utils/hwstub/tools/hwstub_shell.cpp | 5 ++++- utils/hwstub/tools/lua/pp.lua | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'utils/hwstub') diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index cdacd81821..082e15aa59 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp @@ -725,11 +725,14 @@ int main(int argc, char **argv) // load register descriptions std::vector< soc_t > socs; for(int i = optind; i < argc; i++) - if(!soc_desc_parse_xml(argv[i], socs)) + { + socs.push_back(soc_t()); + if(!soc_desc_parse_xml(argv[i], socs[socs.size() - 1])) { printf("Cannot load description '%s'\n", argv[i]); return 2; } + } // create usb context libusb_context *ctx; diff --git a/utils/hwstub/tools/lua/pp.lua b/utils/hwstub/tools/lua/pp.lua index e32a878d01..5f2503040c 100644 --- a/utils/hwstub/tools/lua/pp.lua +++ b/utils/hwstub/tools/lua/pp.lua @@ -43,7 +43,7 @@ function PP.is_pp500x() end if PP.is_pp611x() then - identify("PP6110x (aka GoForce6110)", "pp6110", "pp6110") + identify("PP611x (aka GoForce6110)", "pp6110", "pp6110") elseif PP.is_pp502x() then identify("PP502x", "pp502x", "pp502x") elseif PP.is_pp500x() then -- cgit v1.2.3