Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RPCInterface by
Diff: SerialRPCInterface.cpp
- 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){
