Learning how to use RPC.

Revision:
8:682c65afe534
Parent:
5:56fd0b265aba
--- a/SerialRPCInterface.cpp	Fri Feb 04 10:55:39 2011 +0000
+++ b/SerialRPCInterface.cpp	Sat Jan 28 19:12:00 2012 +0000
@@ -40,7 +40,6 @@
 void SerialRPCInterface::_RegClasses(void){
     //Register classes with base 
     Base::add_rpc_class<AnalogIn>();
-    Base::add_rpc_class<AnalogOut>();
     Base::add_rpc_class<DigitalIn>();
     Base::add_rpc_class<DigitalOut>();
     Base::add_rpc_class<DigitalInOut>();
@@ -50,6 +49,11 @@
     Base::add_rpc_class<BusIn>();
     Base::add_rpc_class<BusInOut>();
     Base::add_rpc_class<Serial>();
+    
+    //AnalogOut not avaliable on mbed LPC11U24 so only compile for other devices
+    #if !defined(TARGET_LPC11U24) 
+    Base::add_rpc_class<AnalogOut>();
+    #endif
 }
 
 void SerialRPCInterface::Disable(void){