Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

Revision:
22:2c37ac12746e
Parent:
18:78e982f31c6b
Child:
25:8bcc8bea0e31
--- a/src/adc.cpp	Fri Jan 11 21:45:55 2019 +0000
+++ b/src/adc.cpp	Tue Jan 15 01:32:33 2019 +0000
@@ -112,7 +112,7 @@
     for(unsigned int i=0;i<100;i++){
         i48x = i48x + IIN48.read_u16();
         i24x = i24x + IIN24.read_u16();
-        i12x = i12x = IIN12.read_u16();
+        i12x = i12x + IIN12.read_u16();
     }
     avals.i48 = i48x/100; 
     avals.i24 = i24x/100;