]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdscript.c
CHG: added timeouts for downloading values from device, to make the client more respo...
[proxmark3-svn] / client / cmdscript.c
index fd02d13a9151b10c01a1249ca712013cb8a463ed..b8c971581f05daa8b772e8ba491e36eae0e4a607 100644 (file)
@@ -83,7 +83,7 @@ int CmdList(const char *Cmd)
     {
         while ((ep = readdir (dp)) != NULL)
         {
-            if( str_ends_with(ep->d_name, ".lua"))
+            if(str_ends_with(ep->d_name, ".lua"))
                 PrintAndLog("%-16s %s", ep->d_name, "A script file");
         }
         (void) closedir (dp);
@@ -98,10 +98,10 @@ int CmdList(const char *Cmd)
  * @param Cmd
  * @return
  */
-int CmdScript(const char *Cmd)
-{
-  CmdsParse(CommandTable, Cmd);
-  return 0;
+int CmdScript(const char *Cmd) {
+       clearCommandBuffer();
+       CmdsParse(CommandTable, Cmd);
+       return 0;
 }
 /**
  * Utility to check the ending of a string (used to check file suffix)
Impressum, Datenschutz