Antonia Baumgartner / Mbed 2 deprecated YB_copy

Dependencies:   mbed

Fork of Versuch21 by Antonia Baumgartner

Revision:
2:efa9a78591da
Parent:
1:6ef5bc60e69c
Child:
3:f44ef28cfb2d
--- a/Classes/IRSensorGF.cpp	Mon Apr 23 16:18:41 2018 +0000
+++ b/Classes/IRSensorGF.cpp	Wed Apr 25 11:16:16 2018 +0000
@@ -1,6 +1,8 @@
 #include <cmath>
 #include "IRSensorGF.h"
 
+//------------------------------------------------------------------------------
+
 using namespace std;
 
 IRSensorGF::IRSensorGF(AnalogIn& distance):
@@ -13,6 +15,8 @@
 
 IRSensorGF::~IRSensorGF() {}
 
+//------------------------------------------------------------------------------
+
 int IRSensorGF::read()
 {
     int d;
@@ -28,10 +32,10 @@
 
     if (w < 60) {
         d=1;
-    }else{
+    } else {
         d=0;
-        }
+    }
 
-        return d;
+    return d;
 
-    }
\ No newline at end of file
+}
\ No newline at end of file