IAP class library for LPC1768, LPC11U24, LPC1114, LPC812 and LPC824
Dependents: MakerBotServer SystemManagement IAP_testing Arch_Pro_TCPSocket ... more
Diff: IAP.cpp
- Revision:
- 6:f794a51897b8
- Parent:
- 5:7484398d50ea
- Child:
- 7:c8bf974ecb33
diff -r 7484398d50ea -r f794a51897b8 IAP.cpp
--- a/IAP.cpp Tue Oct 22 17:23:53 2013 +0000
+++ b/IAP.cpp Mon Sep 29 23:03:30 2014 +0000
@@ -101,13 +101,13 @@
* @see read_ID()
*/
-int IAP::read_serial( void ) {
+int *IAP::read_serial( void ) {
IAP_command[ 0 ] = IAPCommand_Read_device_serial_number;
iap_entry( IAP_command, IAP_result );
// return ( (int)IAP_result[ 0 ] );
- return ( (int)IAP_result[ 1 ] ); // to return the number itself (this command always returns CMD_SUCCESS)
+ return ( (int *)&IAP_result[ 1 ] ); // to return the number itself (this command always returns CMD_SUCCESS)
}
IAP (In-Application Programming)