From 77dbf293ef7da1eb1d11d48f0a408702fa244968 Mon Sep 17 00:00:00 2001 From: Miklos Marton Date: Tue, 15 Aug 2017 22:49:49 +0200 Subject: [PATCH 1/2] Added more specific error if the device is not in the PK2DeviceFile.dat file --- pk2cmd/cmd_app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk2cmd/cmd_app.cpp b/pk2cmd/cmd_app.cpp index 293ff48..d3dfa12 100644 --- a/pk2cmd/cmd_app.cpp +++ b/pk2cmd/cmd_app.cpp @@ -351,7 +351,7 @@ void Ccmd_app::processArgs(int argc, _TCHAR* argv[]) // look for the device in the device file - still need to do this on autodetect to properly set up buffers. if(!PicFuncs.FindDevice(tempString)) { - printf("Could not find device %s.\n\n", tempString); + printf("The %s device is not supported: it's definition could not be found in the device defintions file.\n\n", tempString); fflush(stdout); ReturnCode = INVALID_CMDLINE_ARG; return; From 9511b64c75e342f9ade8c8a0baac3168b92b2c10 Mon Sep 17 00:00:00 2001 From: Miklos Marton Date: Tue, 15 Aug 2017 22:51:38 +0200 Subject: [PATCH 2/2] Typo fix --- pk2cmd/cmd_app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk2cmd/cmd_app.cpp b/pk2cmd/cmd_app.cpp index d3dfa12..ef6af04 100644 --- a/pk2cmd/cmd_app.cpp +++ b/pk2cmd/cmd_app.cpp @@ -351,7 +351,7 @@ void Ccmd_app::processArgs(int argc, _TCHAR* argv[]) // look for the device in the device file - still need to do this on autodetect to properly set up buffers. if(!PicFuncs.FindDevice(tempString)) { - printf("The %s device is not supported: it's definition could not be found in the device defintions file.\n\n", tempString); + printf("The %s device is not supported: it's definition could not be found in the device definitions file.\n\n", tempString); fflush(stdout); ReturnCode = INVALID_CMDLINE_ARG; return;