Joseph Roberts / MaxbotixDriver

Fork of MaxbotixDriver by Daniel Casner

Files at this revision

API Documentation at this revision

Comitter:
joe4465
Date:
Sun Feb 22 20:12:17 2015 +0000
Parent:
0:7e65f5077f5a
Commit message:
Added define check

Changed in this revision

sonar.h Show annotated file Show diff for this revision Revisions of this file
diff -r 7e65f5077f5a -r 24d9d6d213aa sonar.h
--- a/sonar.h	Wed Nov 21 20:47:05 2012 +0000
+++ b/sonar.h	Sun Feb 22 20:12:17 2015 +0000
@@ -1,4 +1,7 @@
 #include "mbed.h"
+
+#ifndef SONAR_H
+#define SONAR_H
 /*** @file Driver for Maxbotix sonar modules
  * Uses pulse width input to read range results.
  * @author Daniel Casner <http://www.danielcasner.org>
@@ -39,4 +42,6 @@
     int pulseStartTime;
     /// The most recent sample
     int range;
- };
\ No newline at end of file
+ };
+ 
+ #endif
\ No newline at end of file