XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Revision:
4:a0f1fba6c2fb
Parent:
0:837e6c48e90d
Child:
6:5f31ddc17239
--- a/Device/Pin.cpp	Mon Oct 26 18:04:12 2015 +0000
+++ b/Device/Pin.cpp	Fri Oct 30 00:38:40 2015 +0000
@@ -21,23 +21,23 @@
     return num;
 }
 
-char* Pin::getCommand()
+char * Pin::getCommand()
 {
     return com;
 }
 
-char* Pin::IOChangeDetectionConfiguration(const Pin *Pins, char Length)
+char * Pin::IOChangeDetectionConfiguration(Pin ** pins, char size)
 {
     Pin::bitfield[0] = 0;
     Pin::bitfield[1] = 0;
-    for (const Pin *i = Pins; i< Pins + Length; i++) {
-        Pin::bitfield[0] |= i->IODet[0];
-        Pin::bitfield[1] |= i->IODet[1];
+    for (int i = 0; i < size; i++) {
+        Pin::bitfield[0] |= pins[i]->IODet[0];
+        Pin::bitfield[1] |= pins[i]->IODet[1];
     }
     return Pin::bitfield;
 }
 
-char* Pin::getIODetection()
+char * Pin::getIODetection()
 {
     return IODet;
 }