Lab 4

Dependencies:   mbed

Revision:
2:ac894e4cff0d
Parent:
1:f68acb38a472
--- a/ACS712.h	Mon Mar 14 13:44:12 2016 +0000
+++ b/ACS712.h	Mon Mar 14 14:03:53 2016 +0000
@@ -45,14 +45,18 @@
          * @return current value in amps
          */
         float read();
-        ACS712& operator=(const ACS712&);
+
         
         /** Read the value of the measured current in amps
          *  Allows the ACS712 object to be used in a float context
          * 
          * @return current value in amps
          */
-        operator float() { return read(); }
+        operator float() { return read(); 
+        
+        
+        ACS712& operator=(const ACS712&);
+        }
         
     private:
         AnalogIn sensor;