removed 500ms blocking call when sending things to obd2 01/2301/1
authorKevron Rees <tripzero.kev@gmail.com>
Tue, 2 Oct 2012 20:56:51 +0000 (13:56 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Tue, 2 Oct 2012 20:56:51 +0000 (13:56 -0700)
plugins/obd2plugin/obd2source.cpp

index 06debe5..c11f312 100644 (file)
@@ -36,7 +36,7 @@ bool sendElmCommand(obdLib *obd,std::string command)
 {
        std::vector<unsigned char> replyVector;
        std::string reply;
-       obd->sendObdRequestString(command.append("\r").c_str(),command.length()+1,&replyVector,500,3);
+       obd->sendObdRequestString(command.append("\r").c_str(),command.length()+1,&replyVector,10,3);
        for (unsigned int i=0;i<replyVector.size();i++)
        {
                reply += replyVector[i];