void Core::subscribeToProperty(VehicleProperty::Property property, AbstractSink* self)
{
- printf("Subscribing\n");
+ DebugOut(1)<<"Subscribing to: "<<property<<endl;
if(!ListPlusPlus<VehicleProperty::Property>(&mMasterPropertyList).contains((property)))
{
- DebugOut()<<__FUNCTION__<<"(): property not supported: "<<property<<endl;
+ DebugOut(1)<<__FUNCTION__<<"(): property not supported: "<<property<<endl;
return;
}
{
if(propertySinkMap.find(property) == propertySinkMap.end())
{
- DebugOut()<<__FUNCTION__<<"property not supported: "<<property;
+ DebugOut(1)<<__FUNCTION__<<"property not supported: "<<property;
return;
}
supportedPidsList.push_back(new WmiPid());
supportedPidsList.push_back(new FuelConsumptionPid());
supportedPidsList.push_back(new EngineCoolantPid());
+ supportedPidsList.push_back(new AirIntakeTemperaturePid());
}
ObdPid* createPidFromReply(ByteArray replyVector)
{
}
bool tryParse(ByteArray replyVector)
{
- MassAirFlowPid::tryParse(replyVector);
+ if(!MassAirFlowPid::tryParse(replyVector))
+ return false;
+
timespec t;
clock_gettime(CLOCK_REALTIME, &t);