added more debug to gpsnmea. example source default return for set operations.
authorKevron Rees <kevron.m.rees@intel.com>
Mon, 3 Mar 2014 19:20:21 +0000 (11:20 -0800)
committerKevron Rees <kevron.m.rees@intel.com>
Mon, 3 Mar 2014 19:20:21 +0000 (11:20 -0800)
examples/CMakeLists.txt
plugins/exampleplugin.cpp
plugins/gpsnmea/gpsnmea.cpp

index 729226b..2fb5f4d 100644 (file)
@@ -1,5 +1,6 @@
 set(amb_examples configwheel databaseconfig databasesource dbusconfig exampleconfig
-        gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2)
+        gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2
+        testsourceconfig)
 
 install (FILES ${amb_examples} DESTINATION /etc/ambd/examples)
 
index bdb809a..e862b01 100644 (file)
@@ -298,6 +298,7 @@ void ExampleSourcePlugin::getRangePropertyAsync(AsyncRangePropertyReply *reply)
 AsyncPropertyReply *ExampleSourcePlugin::setProperty(AsyncSetPropertyRequest request )
 {
        AsyncPropertyReply *reply = new AsyncPropertyReply(request);
+       reply->success = false;
 
        if(reply->property == VehicleProperty::AirConditioning)
        {
@@ -319,7 +320,13 @@ AsyncPropertyReply *ExampleSourcePlugin::setProperty(AsyncSetPropertyRequest req
                        reply->completed(reply);
 
                }
+
+               return reply;
        }
+
+       reply->error = AsyncPropertyReply::InvalidOperation;
+       reply->completed(reply);
+       return reply;
 }
 
 void ExampleSourcePlugin::subscribeToPropertyChanges(VehicleProperty::Property property)
index 29335cc..873d8dc 100644 (file)
@@ -507,6 +507,7 @@ void GpsNmeaSource::canHasData()
                if(checksum(buffer))
                {
                        /// we have a complete message.  parse it!
+                       DebugOut(7)<<"Complete message: "<<buffer<<endl;
                        location->parse(buffer);
                }