From: Michael Carpenter Date: Fri, 23 Nov 2012 21:53:56 +0000 (-0500) Subject: Change so re-subscribing to a pid, removes it from the blacklist if it has been tagge... X-Git-Tag: 0.6.0~8^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F2518%2F1;p=profile%2Fivi%2Fautomotive-message-broker.git Change so re-subscribing to a pid, removes it from the blacklist if it has been tagged as invalid --- diff --git a/plugins/obd2plugin/obd2source.cpp b/plugins/obd2plugin/obd2source.cpp index 0cfc014..cb8f364 100644 --- a/plugins/obd2plugin/obd2source.cpp +++ b/plugins/obd2plugin/obd2source.cpp @@ -709,6 +709,15 @@ void OBD2Source::subscribeToPropertyChanges(VehicleProperty::Property property) ObdPid *pid = obd2AmbInstance->createPidforProperty(property); + + //If the pid is currently in the blacklist map, erase it. This allows for applications + //to "un-blacklist" a pid by re-subscribing to it. + if (m_blacklistPidCountMap.find(pid->pid) != m_blacklistPidCountMap.end()) + { + m_blacklistPidCountMap.erase(m_blacklistPidCountMap.find(pid->pid)); + } + + g_async_queue_push(subscriptionAddQueue,pid); CommandRequest *req = new CommandRequest(); req->req = "connectifnot";