a

Dependents:   IOT_Sockets

Fork of xbee_api by Wiktor Grajkowski

Files at this revision

API Documentation at this revision

Comitter:
ammanvedi
Date:
Sat Feb 01 17:29:36 2014 +0000
Parent:
10:61e607fa8621
Commit message:
added ifdef declarations

Changed in this revision

xbee.h Show annotated file Show diff for this revision Revisions of this file
xbeeFrame.h Show annotated file Show diff for this revision Revisions of this file
diff -r 61e607fa8621 -r c8737cf52430 xbee.h
--- a/xbee.h	Sun Jan 26 17:19:28 2014 +0000
+++ b/xbee.h	Sat Feb 01 17:29:36 2014 +0000
@@ -15,6 +15,9 @@
  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
+#ifndef XBEE_H
+#define XBEE_H
+
 #include "mbed.h"
 
 /** Xbee interface class for configuring, sending and recieving data using an Xbee */
@@ -74,4 +77,6 @@
         /** Resets the Xbee.
       */
     void Reset();
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
diff -r 61e607fa8621 -r c8737cf52430 xbeeFrame.h
--- a/xbeeFrame.h	Sun Jan 26 17:19:28 2014 +0000
+++ b/xbeeFrame.h	Sat Feb 01 17:29:36 2014 +0000
@@ -1,3 +1,6 @@
+#ifndef FRAME_DEVICE
+#define FRAME_DEVICE
+
 #define FRAME_SIZE      127
 #define STARTBYTE       0x7E
 #define MAX_DATA_LEN    70
@@ -88,4 +91,6 @@
     unsigned char frameReceived;
     
     void PrintPayload();
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file