summaryrefslogtreecommitdiffstats
path: root/utils/hwstub
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-05-01 19:44:23 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-05-11 19:54:47 +0200
commit17affb8085b408d7b135adfe4972a7057e12d7fd (patch)
tree926e3fe3781bd3283254b55648273885202ef96d /utils/hwstub
parent355b5406fafe0d45285e70a0b01d5e674d6a2c16 (diff)
downloadrockbox-17affb8085b408d7b135adfe4972a7057e12d7fd.tar.gz
rockbox-17affb8085b408d7b135adfe4972a7057e12d7fd.zip
hwstub: fix hwstub_shell
Change-Id: I008a55675054c86fd206cc5248f2bd9475e80b49
Diffstat (limited to 'utils/hwstub')
-rw-r--r--utils/hwstub/tools/hwstub_shell.cpp5
-rw-r--r--utils/hwstub/tools/lua/pp.lua2
2 files changed, 5 insertions, 2 deletions
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