projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a04f016
)
Change so re-subscribing to a pid, removes it from the blacklist if it has been tagge...
18/2518/1
author
Michael Carpenter
<malcom2073@gmail.com>
Fri, 23 Nov 2012 21:53:56 +0000
(16:53 -0500)
committer
Michael Carpenter
<malcom2073@gmail.com>
Fri, 23 Nov 2012 21:53:56 +0000
(16:53 -0500)
plugins/obd2plugin/obd2source.cpp
patch
|
blob
|
history
diff --git
a/plugins/obd2plugin/obd2source.cpp
b/plugins/obd2plugin/obd2source.cpp
index
0cfc014
..
cb8f364
100644
(file)
--- 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";