From 7753302214aba05373d63895bcfb91861e1aa540 Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Thu, 15 Nov 2012 13:50:07 -0800 Subject: [PATCH] fixed tryParse returning false issue --- plugins/obd2plugin/obd2source.cpp | 2 +- plugins/obd2plugin/obdpid.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/obd2plugin/obd2source.cpp b/plugins/obd2plugin/obd2source.cpp index cdc0116..9c093d7 100644 --- a/plugins/obd2plugin/obd2source.cpp +++ b/plugins/obd2plugin/obd2source.cpp @@ -219,7 +219,7 @@ void threadLoop(gpointer data) if (!pid) { //Invalid reply - DebugOut() << "Invalid reply\n"; + DebugOut() << "Invalid reply"<(rpm); - return false; + return true; } }; @@ -135,7 +135,7 @@ public: } int temp = tmp[2] - 40; value = boost::lexical_cast(temp); - return false; + return true; } }; @@ -157,7 +157,7 @@ public: } maf = ((tmp[2] << 8) + tmp[3]) / 100.0; value = boost::lexical_cast(maf); - return false; + return true; } protected: @@ -187,7 +187,7 @@ public: double consumption = 1 / (14.75 * 6.26) * maf * diffTime/60; value = boost::lexical_cast(consumption); - return false; + return true; } private: @@ -228,7 +228,7 @@ public: } value = vinstring; - return false; + return true; } }; @@ -247,7 +247,7 @@ public: VinPid::tryParse(replyVector); value = value.substr(0,3); - return false; + return true; } }; -- 2.7.4